Lost Control in VS.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

Ok, don't laugh, but I have a panel control on a form and it has lots of
other controls on it. I can't find it in the designer in VS.NET! I can go
to the properties window and select it. All the controls it houses are there
too. Yes, I did move all the controls on the form all over the place and
it's nowhere to be found. I checked the size of it and location and the
numbers high enough I should see it. When I run the program all is fine and
the panel is right where it's supposed to be.

Is there some resource file or something that could be corrupt?

Thanks,
John F
 
I answered my own question. It seems that under Initialize component the
line to add the control to the form was missing. I added:
this.Controls.Add(this.pnlDashBoard);
and all works fine now....
 
Back
Top