Creating Custom Control Invalidates Form Designer?

  • Thread starter Thread starter Joe Keller
  • Start date Start date
J

Joe Keller

Hello,

I have created a small test project where I have created a custom control
and I can get the custom control to run successfully. However, when I then
switch from code to "design" mode of the form, the form is not displayed and
the toolbox is grayed out.

Is there something simple I'm missing here? If I comment out my custom
control code, all returns to normal.

Thanks!

Joe
 
Where is the control code located in the file? The code for the Form class
must be the first thing in the file. So make sure that your custom control
code is after the Form class.
 
Back
Top