Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Custom Control - or is it?
 

Custom Control - or is it?

Hi everyone,

After successfully wrestling with getting my components into the toolbox (with an icon - now THAT was an ordeal ;-) ) - I'm trying to create a component that can be dragged and dropped onto a form, but not as a control.  I want the item to appear under the form on the panel where datasets, bindingsources etc. are displayed. 

Can anyone give me any pointers on how to do this?

Thank you for any assistance,

Kearnsy
Kearnsy  Tuesday, October 06, 2009 11:27 PM
All the controls you mentioned are Components.

Derive your class from System.ComponentModel.Component.
Tamer Oz  Wednesday, October 07, 2009 3:28 AM
Hi Kearnsy,

You can follow the document below which shows how to create custom component:
http://msdn.microsoft.com/en-us/library/ms228287(VS.80).aspx

Regards,
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  19 hours 43 minutes ago
All the controls you mentioned are Components.

Derive your class from System.ComponentModel.Component.
Tamer Oz  Wednesday, October 07, 2009 3:28 AM
Hi Kearnsy,

You can follow the document below which shows how to create custom component:
http://msdn.microsoft.com/en-us/library/ms228287(VS.80).aspx

Regards,
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  19 hours 43 minutes ago
mikencube  19 hours 41 minutes ago
Thanks for all the replies - this place is great!

:)
Kearnsy  6 hours 16 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• Localized Forms and "$this.Name"
• Visual inheritance in derived Forms
• Forms inheritance CreateInstanceImpl
• need some help
• Remove the icon from the system tray programmatically
• Glyph and Adorner Assistance
• How to create an object property for a custom UserControl?
• How to enable mouse events on the hosted form
• how to add one more control in open dialog box
• Form Size