Windows Develop Bookmark and Share   
 index > Windows Forms General > Can one master control contain multiple controls?
 

Can one master control contain multiple controls?

I would like to create a barcode control that can represent multiple barcode types. Each barcode type will have it's own set of properties. The main control would have a property to select a barcode type and then depending on the selection, that barcode type would present it's properties to the properties window. Is this possible? Does anyone have an article reference to this model?
thanks
mike_1000  Saturday, April 18, 2009 7:51 PM

Since you're trying to change the way the property grid handles this class, you probably should consider making a custom editor and display for the property grid directly.

This would be done by creating your own UITypeEditor and TypeConverter. I'd recommend taking a look at this article for ideas:

http://msdn.microsoft.com/en-us/library/aa302326.aspx?ppud=4

Reed Copsey, Jr.  Monday, April 20, 2009 7:47 PM

Since you're trying to change the way the property grid handles this class, you probably should consider making a custom editor and display for the property grid directly.

This would be done by creating your own UITypeEditor and TypeConverter. I'd recommend taking a look at this article for ideas:

http://msdn.microsoft.com/en-us/library/aa302326.aspx?ppud=4

Reed Copsey, Jr.  Monday, April 20, 2009 7:47 PM

You can use google to search for other answers

Custom Search

More Threads

• accessing a data access component in a form, from controls on that form
• Form style/control
• Need help on some PropertyGrid and PropertyGridView members
• ProcessStartInfo - Execute it in Hidden Window
• No source code found exception
• Naming Container problem and Dynamically Creating user controls
• Splitter control
• How to find available SQL Server on local network
• Model View Controller using TreeView control
• RichTextBox Usage.