where oh where have my controls gone?

  • Thread starter Thread starter vbCrazy
  • Start date Start date
V

vbCrazy

I had a number of labels and text boxes in a panel.
They do not show up in the designer.
They are listed in the properties pane in the designer
They are listed in the Private components As
System.ComponentModel.IContainer

Anyone have any idea how to make the controls visible in
the designer
 
* "vbCrazy said:
I had a number of labels and text boxes in a panel.
They do not show up in the designer.
They are listed in the properties pane in the designer
They are listed in the Private components As
System.ComponentModel.IContainer

Are you sure the controls are added to the panel in the Windows Forms
Designer Generated Code ('<...>.Controls.AddRange(...)')?
 
I've seen this as well the, Panel just dissappears. I'd be interested in
the solution. I know that it has something to do with the Panel Control, I
saw something awhile a cgo that mentioned modifing the Windows Designer code
so instead of using the Add Method too add the controls to the panel use the
AddRange method but I never tested it out.

In my case all the controls that weren't displaying in the designer were in
the Windows Generated code and I would bring them to front and they were
within the visable area of the form they just wouldn't come back...

Mike Bulava
 
-----Original Message-----
* "vbCrazy" <[email protected]> scripsit:

Are you sure the controls are added to the panel in the Windows Forms
Designer Generated Code ('<...>.Controls.AddRange(...)')?
That was the problem - the addrange was somehow deleted -
it was there at one point because the controls were
there...I don't mess with the Designer Generated Code
manually, so vb.net somehow removed it....

thanks for your help....
 
* said:
That was the problem - the addrange was somehow deleted -
it was there at one point because the controls were
there...I don't mess with the Designer Generated Code
manually, so vb.net somehow removed it....

Thnks for the info. I would make a backup every day (maybe
automatically) to avoid these problems...
 
Back
Top