How to Create an Invisible User Control?

  • Thread starter Thread starter Don
  • Start date Start date
D

Don

Is it possible to create a custom control that will show up in the toolbox
and can be dragged onto a form, but will appear in that special section at
the bottom of the form designer window where things like ImageList controls
go instead of on the form itself? If so, how is it done?

- Don
 
Don said:
Is it possible to create a custom control that will show up in the toolbox
and can be dragged onto a form, but will appear in that special section at
the bottom of the form designer window where things like ImageList
controls go instead of on the form itself? If so, how is it done?

Instead of inheriting from 'System.Windows.Forms.UserControl' let your class
inherit from 'System.ComponentModel.Component'.
 
Back
Top