How to Create an Invisible User Control?

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
 
A

Armin Zingler

H

Herfried K. Wagner [MVP]

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'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top