URGENT: help getting back my codes :(

XtremeMaC

Member
Joined
Oct 22, 2007
Messages
8
Location
Turkey
Programming Experience
3-5
help getting back my codes...solved....

hi there
I was working with the stuff i wrote in the tabpages, clicked to add another tab, something went wrong all my tabs are deleted now

All the stuff that were in the tab can be seen in the designer.vb file. They exists over there but not in my actual form. all my events exist in the code, all textbox events etc. but nothing is shown on the form. wierd thing is since those controls don't exist anymore they should be underlined and should give an error but the project builds without any problems.


something should get them back on the form right?
 
Last edited:
No need to delete you, the purpose of the forum is for people to learn ... :).

I would have guessed that the problem was that the Panel_Cylinder_Arrangment control was not added to the Form's Control collection; I've seen this happen where a crash caused the IDE to remove that statement from the designer code. If a visual control is created but not added to the control collection (and it's parent added to a control collection up the chain to the Form), then it does exist in memory and you can modify it's properties etc, it just won't be painted on the form.

VB.NET:
Me.Panel_Cylinder_Arrangment.Controls.Add(Me.Rb_Arr_6)
If this line is in your designer file (which you deleted from the original thread); and there are no errors, then the control Rb_Arr_6 does exists. How did you "manually add each control to where it belongs"?
 
Back
Top