backColor proprtiy control

  • Thread starter Thread starter touf
  • Start date Start date
T

touf

hi,

What is the control that the vb.net uses for the color selection
(forcolor,backcolor,..) in the form design properties.
it looks like a combobox that contain a tabControl.
 
Hello,

touf said:
What is the control that the vb.net uses for the color selection
(forcolor,backcolor,..) in the form design properties.
it looks like a combobox that contain a tabControl.

I think you will have to implement a control like that yourself.
 
touf,
As Herfried stated, you need to 'implement' this class yourself. In that it
is not a real control, it is actually a UITypeEditor.

System.Drawing.Design.ColorEditor.

In order for you to use it, you need to be able to host UITypeEditor
classes. Other than System.Windows.Forms.PropertyGrid I do not know of an
easy way to host UITypeEditor classes. For starters on creating (not
necessarily hosting) a UITypeEditor see System.Drawing.Design.UITypeEditor.
The overview for UITypeEditor suggests a
System.Windows.Forms.Design.IWindowsFormsEditorService interface...

What you are seeing is partially the UITypeEditor & partially PropertyGrid
control.

Unless they are using the PropertyGrid control the following projects may
have sample code on hosting the UITypedEditor class.

http://www.icsharpcode.net/opensource/sd/

http://windowsforms.net/Default.aspx?tabindex=5&tabid=47

For a overview of design time support (UITypeEditors & related classes) see:
http://msdn.microsoft.com/library/d...ide/html/cpconenhancingdesign-timesupport.asp

Hope this helps
Jay
 
Back
Top