By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,162 Members | 1,486 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,162 IT Pros & Developers. It's quick & easy.

backColor proprtiy control

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hello,

"touf" <to******@hotmail.com> schrieb:
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.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2

P: n/a
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.IWindowsFormsEditorSer vice 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...dex=5&tabid=47

For a overview of design time support (UITypeEditors & related classes) see:
http://msdn.microsoft.com/library/de...imesupport.asp

Hope this helps
Jay

"touf" <to******@hotmail.com> wrote in message
news:Od**************@TK2MSFTNGP11.phx.gbl...
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.

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.