sethindeed Posted February 6, 2003 Posted February 6, 2003 My form disapeared !!! All the controls on it went away ! The code is still there but the UI is gone !!! Anybody experienced this problem before ?!?! Please help me :( Quote What I don't know keeps me excited...
Moderators Robby Posted February 6, 2003 Moderators Posted February 6, 2003 Wow, three others had the same problem this week. Did you change anything in the Autogen portion of the code? Is this ASP or Windows Forms? Quote Visit...Bassic Software
Threads Posted February 6, 2003 Posted February 6, 2003 Check your InitializeComponent() procedure to make sure the code is all still there... Another user had that same problem and it turned out that somehow the code was deleted. If possible, you would need to copy it over from a backup. If it is there, maybe somehow it was corrupted? Take a look at it for obvious errors or maybe post it here.... Quote mov ax, 13h int 10h
sethindeed Posted February 6, 2003 Author Posted February 6, 2003 My two cents I copied some procedures by myself instead of clicking on a component to code procedures. I think that we have to proceed very carefully when assigning code to controls...We just can't go like we were used to in VB6...Anyway, I am now back at the point I was ( rebuilding the project and starting a new form from scratch, because even if you are retyping the code in the empty form shown after the data lost, it is corrupted ) Quote What I don't know keeps me excited...
*Experts* Nerseus Posted February 7, 2003 *Experts* Posted February 7, 2003 What I've usually seen is that not ALL the code in InitializeComponent is gone, just the few lines that reference the current form (Me in VB.NET or this in C#). In particular, the line that adds all the control to the form (sonething like this.Controls.AddRange(...)) is missing. Without this line, .NET won't know to add the controls to the form. So even though all other code is there, including creating controls, the form won't render any of them. -Ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
mackie Posted March 27, 2003 Posted March 27, 2003 is there a .resx file associated with the windows form? Quote
Moderators Robby Posted March 27, 2003 Moderators Posted March 27, 2003 mackie, is your post for a problem you're having or is it to help Seth? Because this thread almost 2 months old. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.