Controls not displaying on form in design as well as runtime

  • Thread starter Thread starter Prashant
  • Start date Start date
P

Prashant

Peculiar problem,

All of a sudden today in one of our forms a few of the controls have
disappered. The code behind the scenes still exists. No errors ,
nothing. The controls just don't show for user input.

any ideas ? Tried almost everything.
 
* (e-mail address removed) (Prashant) scripsit:
All of a sudden today in one of our forms a few of the controls have
disappered. The code behind the scenes still exists. No errors ,
nothing. The controls just don't show for user input.

Have a look at the code in 'Sub InitializeComponent' and make sure the
controls are added to the form's 'Controls' collection (there is a call
to its 'AddRange' method).
 
I've done that a couple of times when I accidentally override a base method.
For example, the form has a OnLoad() method, as well as a Load() event.

Hope that helps.
 
Back
Top