views:

107

answers:

1

Hello,

How do I create non visual components in .NET that can be dragged and dropped onto a Form ?

For example the imagelist component is a non visual component, it appears in the toolbox and can be dragged onto a form and properties can be set for that component.

How can I achieve that ? How can I create non visual components. I know about user controls but that is not what I am looking for.

Thank you

+8  A: 

By deriving from Component instead of Control.

public class MyNonVisualControl: Component
{

}
Darin Dimitrov
Yea, refer to the MSDN reference on ImageList, and you'll get the idea http://msdn.microsoft.com/en-us/library/system.windows.forms.imagelist%28VS.71%29.aspx
o.k.w
Great - Thank you
GX