make usercontrol appear in component tray

D

Dave

hi,

I am creating a usercontrol in .net that inherits from the panel
control. I want to display it in the component tray -- like the timer
control -- and not on the form.

thanks,
dave
 
H

Herfried K. Wagner [MVP]

Dave said:
I am creating a usercontrol in .net that inherits from the panel
control. I want to display it in the component tray -- like the timer
control -- and not on the form.

Inherit from 'System.ComponentModel.Component' instead of inheriting from
'System.Windows.Forms.UserControl' or 'System.Windows.Forms.Panel'.
 

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