miCRoSCoPiC^eaRthLinG
Feb 19 2005, 06:44 PM
HI, This is a very old & well-known bug in Visual Studio 2003 and I hear it's been recitifed in the 2005 version. But till I get my hands on it (which isn't hapenning soon enough) I still got to use the old VS2003. The problem is: if you mess around with the code that lies in the region "Windows Forms Designer Generated Code" - the form controls just VANISH when you load it up in designer mode. They just won't come back however hard you try - and all you're left with is a BLANK form. Not that it hampers with your code from running in any way - but you can't see the layout of your controls anymore and kind of grope around in the dark... Does anybody know any solutions to this ??? Urgently needed if there is one... Thanks a lot  P.S. A little bit of details as to where it's going wrong ----------------------------------------------------------------- QUOTE ...... ........
'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. Friend WithEvents AxTaskPane As AxtssTaskPane.AxTaskPane Friend Shared WithEvents panelMainScreen As System.Windows.Forms.Panel ...... ........ Do you see the last line - that's where I've introduced the keyword "Shared" after the "Friend" keywork - and that's what makes all the controls VANISH COMPLETELY from the designer. If I remove the shared keyword and try - all controls are BACK !!! But I NEED to use the shared keyword there for other modules/classes to be able to access and manipulate that panel. This is very funny and extremely inconvenient at the same time.. So, can anyone suggest a workaround ??
Reply
SystemWisdom
May 3 2005, 04:50 PM
I have experienced the same problem in my VB.Net Application, and my simplest workaround was to pass the control as a reference to the other modules/classes that needed access to the container. In my given situation it was possible, and achieved the desired effect, but maybe that is not an option in your situation? I know it seems cumbersome, but it works! I hope that helps!
Reply
miCRoSCoPiC^eaRthLinG
Jul 2 2005, 05:31 PM
Thanks for your reply - infact that's what I exactly did, after being told to get rid of the Shared keyword on vbCity forums... it works all fine now. I simply pass this Panel as a parameter named "Owner" of the type Control to the created class and that created class (which is subclasses from Panel again) attaches itself inside this main panel.. that did the trick  Regards, m^e
Reply
Similar Topics
Keywords : net, designer, generated, code, editing, problem, workarounds
- Billing Problem. Plz Help
(2)
Problem With My Pc
crashes very frequently (2) My home PC has got a very seious problem....i took it about half a year ago..and in these six months
it has come up with more problems than my 6 year old PC.... It crashes very frequently...i have
tried good antivirus programs and i maintain it well too ...actually i have stopped doing it now
because every week during start up, a black screen shows up and the OS fails to load.... I then
reinstall XP and then again hope that it survives for another week... i am fed up of ths
reinstallations as it consumes the whole day....... The problem is..I still don't know what ....
Problem Concerning Credits Reduced
Reduced when I created a hosting account (12) My free web hosting account request for the second package was approved, which means that at the
time of the request (the topic itself) or the topic, however you want to name it, i had something
over 37 credits, positive and green of course, and when the admin actually approved the request, and
we all know that exactly when we see some changes on the request topic title, for instance, the
addiction of the words: "denied", "approved", et cetera. The point is that when the admin approved
today i had about 45 or 47 credits, and i created then the hosting account that only....
Problem With Hosting
delete it or wait it out? (4) Okay all I need help and or advice of this problem or delema. I have already posted that I have a
problem with logging into my cpanel, and have had replys of what to do, none worked. I have left a
ticket with xisto and no reply. Right now I am about to go Nuke over this. as some of you know my
site is a weather site and we have 2 systems on the east coast of the us. My problem is should I
wait this out and let the credits I have be used. "cant even access my own site" or save them and
just resign up and hope that takes care of the problem. Or even worse leave trap17 a....
What Is My (power) Problem?
(4) Hey all: I have a problem with my desktop. I have replaced the PSU a few times but now have a new
problem. When I turn on the power the green led on the asus motherboard glows green, but it is a
dull green and I cannot power up the machine. After some time (30-60 secs or more) it turns bright
green and I can power up. Then sometimes I am in the middle of working and the power will just
reset. When the computer boots up it starts loading the drivers then reboots again and keeps doing
this so it keeps rebooting and rebooting and rebooting and rebooting and rebooting ....
Attachment Problem In Pmwiki
The photos uploaded in PmWiki do not show themselves in the pages (0) Hi, I recently added PmWiki to my website. It is a great software, both light-weight and useful
with a lot of extensions. But a thorn is still in my side which is the attachments problem. When I
upload photos in a page the attachment just shows up like a text link which points to the uploaded
image without any image display. So I got stuck where I decided to make some profile pages for my
club members. Anybody here knows what to do? I have a little experience with PmWiki but I suggest
it to you if you do not want to be over killed by a system like what Wikipedia use....
Problem With The Trap17 Forum
Inconsistent links and problems with "Latest Activity" (4) Hi, I have noticed a bit of a problem with the forums here on Trap17. I don't know if this is a
problem with the Trap17 implementation, or with Invision Power Board in general, or with a mod that
is running on the forums here, and I'm sure that someone smarter than me can isolate the source
of the problem. What I have noticed firstly is that the link that is generated in the top right
corner of a post within a thread, the link to that particular post (I'll call that the linkback
link), sometimes links to the post itself, but often just links to the thread. T....
Video Play Like Youtube
php, javascript source code need like player youtube (4) i need help for source code php or javascript... i want display video with a player like in
youtube... please for help?....
Counter Strike Problem
steam validation (2) Heloo i get a probelm steam validation rejected does anyone know how to fix it ?? i tried everything
im going to contact steam support to see if they can fix but can you guys help me?....
Hosting Credits Problem? [resolved]
(9) Hi. Last night I had HOSTING CREDITS : 29.67 DAYS credits. Now I have HOSTING CREDITS : 7.06 DAYS.
How on earth did they get reduced that quickly? I am so confused. Any help please?....
Editing Posts Alters Credits?
Does being retrospecitvely pedantic pay? (24) I am wondering about the Credit System calculations on the Trap17 forums. If I were to make a post
and submit it, then the calculation system does its magic and attributes a certain number of Credits
for that post, right? So, what happens if I later revisit the post and edit it? For argument's
sake, if I get am a bit sloppy in my speeling and don't rite proper Inglish, then your algorithm
will give me less Credits than if I had been more accurate with my spelling and grammar. However, if
after I have pressed the "Post New Topic" or "Add Reply" button I notice the....
Firefox 3 Cookies Problem
It is reeeeeeally annoying (4) Hello The person who finds a solution for my problem would really be a life saver for me. I've
tried searching all over the web. Whenever I try to visit phpbb2 forums, I have to clean my cookies
before logging in, and this sux. I also get yahoo and google bad request errors. Here is the google
bad request: CODE Google Error Bad
Request Your client has issued a malformed or illegal request. Please see Google's
Terms of Service posted at http://www.google.com/terms_of_service.html ....
An Uncrackable Code!
(2) You gotta check this out. This code is completely uncrackable. http://www.waingo.com/impossible
I tried a hex to bin converter, then a reverse matrix algorithm, and I got nothing.....
Create Dynamic Html/php Pages Using Simple Vb.net Code
Taking your application data, and creating a webpage for others to vie (1) This example will show you how use a string in VB to create PHP code. In order to do this, you need
a string to store your PHP page and a function that I will list at the bottom of the page for you to
put in a module. This code is written in VB.NET Public Sub CreatePage(ByVal HTMLTitle As
String, ByVal HTMLText As String, ByVal HTMLFileName As String) Dim strFile As String '
---------------------- ' -- Prepare String -- ' ---------------------- strFile = "" '
-------------------- ' -- Write Starter -- ' -------------------- strFile = " " ....
Davinci Code
(5) Ok, Ok, I know I am way behind on the times, the movie is allready out and gone and I just now got
around to reading the book. First off, so you know, I'm a cheap skate, and just happened to see
the book at the swap meet for a quarter, so I decided I wanted to see what all the fuss was about.
I remember a lot of controversy when the movie came out from the religous sector. And boy do I know
why now, after reading the book! Talk about a serious stab at organaized
religion!!! At any rate, it was a good story and I did enjoy reading it. Sure kep....
Problem With My Girlfriend Family, Need Suggestions For Action
Problem with my girlfriend family, need suggestions for action (2) It's been nearly 3 months that I am in abroad for my future study. Many things happened
/ohmy.gif" style="vertical-align:middle" emoid=":o" border="0" alt="ohmy.gif" /> in these 3 months
back in my home country. I had a girl friend /biggrin.gif" style="vertical-align:middle"
emoid=":D" border="0" alt="biggrin.gif" /> and both of our parents know that we are seeing and
dating each other and want to tie knot /tongue.gif" style="vertical-align:middle" emoid=":P"
border="0" alt="tongue.gif" /> in near future. We desperately love each other. Everything is going ....
Add Flashing Inbox To Invisionfree Forum
Html code for invsiionfree!! (2) Do you find it annoying when you are on your invisionfree forum, and you get a new message, and it
ends up taking you 5 minutes to notice? This code makes the inbox link flash bold red saying how
many messages you have. In version 1 the word inbox stays the same, and doesnt change at all (for
Example this is flashing: Inbox (2) In version 2 (the second code) the word inbox changes to
messages (constantly, so that if you have none, it says messages (0) instead of inbox (0). It still
flashes Red Put the following In the Header and Body Section (Admin Cp>>>Skinning ....
Pop-up Virus / Trojan Problem
Constant pop-up, won't go away (10) Hi Guys, Lately I have had this same annoying pop-up dialog box pop up that says: QUOTE NOTICE:
If your computer has been running slower than normal, it may be infected with Viruses, Adware, or
Spyware. Adwareremover2007 will perform a quick and completely FREE scan of your system for
malicious programs. Download AdwareRemover2007 for FREE now! I have scanned it with Avira
AntiVirus and ad-aware2007. They both returned infected files, which i deleted, but i still have the
pop-ups. Any ideas?....
Sharing Files And Printer Between Windows Vista And Xp
Networking Problem (9) I have set up a wireless network between my two computers one vista and one XP I can access the
shared files from the vista machine on the XP PC but I cannot access the shared files or printer
which are on the XP PC via the vista one I don' think it is a firewall issue. Can anyone help
please it is driving me mad?? /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
alt="biggrin.gif" />....
Dandruff Problem
(29) I am a average built, Indian, Male, aged 20 person. I have a very serious problem with the
dandruff. It comes back within an hour after taking a head bath. It is bothering me a lot. It is
very itching and really irritating. I have tried applying lemon on my head but in vain. The dandruff
still comes back. My mom advised me not to apply lemon too much on head so I have stopped applying
that also on head. I went to a doctor and he asked me to shampoo hair with a medicated shampoo
called SELSUN. But still the dandruff problem is lasting and with no effect with the medic....
Laptop Keyboard Problem
Dell Inspiron 6000 (8) First post on here and here it goes.... I got a laptop the "A" button now doesn't work. I pryed
off the black top to check if any dirt or liquid is under there and cleaned it put it back on and it
still doesn't work. I ordered a keyboard for my laptop off ebay. Now how exactly do i take off
the old one and put a new one in? Thanks....
Remote Assistance Problem
Won't work (9) I have tried tons of times and i can not get it too work. I did't even know about this until
Paul from Trap 17 used it to help me with something on my site. Whenever i try it, it never
connects. I have tried all three ways. Email, MSN, and download the file and send it. Both computers
are connected to the internet. On microsoft's site they have a lot of people with the same
problem, but no one ever helps with it. They are all unanswered. Paul: If you read this i know you
know how to do it.....
Simple C File Handling In Action
Small code snipet which covers most of basic file handling and navigat (4) Yesterday I suddenly got a lot of work. The same work we try to push off, yes you are right all
formalities to get the code review incorporated and update all source code files with code review
headers. Imagine if you need to open 300 files one by one and append code review headers at the
end. Since most files are reviewed in groups of 20 to 30 files. We require one header to be placed
in say 20 to 30 files. To simplify I went back to my class assignment days and wrote this small c
utility to open all files passed on command line and open attach code review headers an....
Problem With Page Redirect
Help me out with this problem... (8) hey ppl, i just wanted a little help...i designed this website, but i want that if i click on
certain link, it should open new page for few seconds and then browser should automatically redirect
me to some other page....i tried this with header() function but i couldnt do the wait n redirect
part, ... so somebody plz help.... -thanx in advance! Thanks Avalon, topic changed. ....
Upload Component - Failed
Problem with Mambo (6) Hello! When I am trying to upload a component in joomla (I upgraded from mambo, I had the same
problem on mambo), it dont work, i get this error message: ! Upload component - Failed" "File
/home/esector/public_html/Gamesector/media/install_4381d76108f20/com_forum.zip does not exist!
" How can I fix it?....
I Have A Girl Problem Here
I like this girl and she likes me (27) Ok I have a girl problem here. I like this girl and she likes me back but there is a small problem.
She already has a boyfriend. I want to go ask her out but as you see she has a boyfriend. So my
question is what should I do. We are good friends and know each other pretty well.....
Problem Installing Sims 2 Nightlife
update failure (26) I have the Sims 2. I tried to install Sims 2 Nightlife expansionpack. He reches 100 % with
installing the game...then he automatically run the updat for the sims 2. But when he's going
trough the files he stops st the file: CSBin/package.exe He says there is a error, and then when I
click ok, install terminates and goes back from 100% to 0%. Can anybody tell me what's going
wrong here? Has anyone else had this problem? I just can't figure it out. And on the internet I
found a few people who had the same problem but just havent had an solution for it yet. Ca....
60 Seconds Countdown That Shutdown The Pc
Problem in computer that automatically restart COMPUTER (15) I encountered this bugs or what 6 months ago, untill now still gives me a headache. I don't
know if it is a virus, problem in windows services or what but honestly I cant fix it. What it does
is, it's gives you an error message saying blahh blahh...with a timer of 60 seconds, when the
timer reached 0 it will automatically restart your computer.....
Did You Face Problem Opening Pdf With Firefox?
(15) Hello, I have a question to ask since the 1st day of my download of firefox ... Whenever i open a
pdf file online using firefox, the firefox is get not responding and my comp got hanged ... i have
to manually end the firefox program via windows task manager .. I tried to wait the pdf to load, but
it seems that it takes forever .. so im guessing it's the trail version's bug .. but after a
few updates, I still have the problems with my firefox ... Is this my computer's problem or
firefox problem ? If it's a firefox bug, it's impossible that no1 report ....
How do you test your php code
(80) We know that php is a server side scripting language. So we will need a server with the php parser
to parse/test our code. How are you doing that. Do you upload it to a server for testing or did you
instal php and the server (apache) on your computer (localhost)....
Looking for net, designer, generated, code, editing, problem, workarounds
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for net, designer, generated, code, editing, problem, workarounds
*MORE FROM TRAP17.COM*
|
advertisement
|
|