Windows Develop Bookmark and Share   
 index > Windows Forms Designer > How to Implement font picker, color picker , in windows application
 

How to Implement font picker, color picker , in windows application

Hi
I am creating a window application . In which i have a tool bar. Now wht i want that there should be a combo box for color picker like office applications (Word ,excel etc) and a second combo box for font picker , font color and so on.

Please tell me how can i do this.
Progress2007  Friday, April 17, 2009 3:50 PM
Hi Progress2007,

We can add a ComboBox in the ToolStrip control, and add items for it. Such as font picker, we only need to add the name of the font as item to the ComboBox. You can also custom drawing the item by handling DrawItem event.

For ColorPicker, we need to create a usercontrol as the dropdown of the ComboBox for the user to pick color. Here's an article in the codeproject having the detail as how to achieve the goal.

If you have anything unclear or need any further help, please feel free to let me know.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
  • Marked As Answer byProgress2007 Tuesday, April 21, 2009 8:31 AM
  •  
Bruce.Zhou  Tuesday, April 21, 2009 2:33 AM
Hi Progress2007,

We can add a ComboBox in the ToolStrip control, and add items for it. Such as font picker, we only need to add the name of the font as item to the ComboBox. You can also custom drawing the item by handling DrawItem event.

For ColorPicker, we need to create a usercontrol as the dropdown of the ComboBox for the user to pick color. Here's an article in the codeproject having the detail as how to achieve the goal.

If you have anything unclear or need any further help, please feel free to let me know.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
  • Marked As Answer byProgress2007 Tuesday, April 21, 2009 8:31 AM
  •  
Bruce.Zhou  Tuesday, April 21, 2009 2:33 AM
Hi Progress2007,

We can add a ComboBox in the ToolStrip control, and add items for it. Such as font picker, we only need to add the name of the font as item to the ComboBox. You can also custom drawing the item by handling DrawItem event.

For ColorPicker, we need to create a usercontrol as the dropdown of the ComboBox for the user to pick color. Here's an article in the codeproject having the detail as how to achieve the goal.

If you have anything unclear or need any further help, please feel free to let me know.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
thaks a lot for ur response.
Progress2007  Tuesday, April 21, 2009 8:31 AM

You can use google to search for other answers

Custom Search

More Threads

• Switching between languages on a localized form resets bindingsource on form
• Why does the Visual Studio Designer Serialize Generics (e.g. List<>, SortedDictionary<>, etc.) when used as a property in a custom control
• Using List View control in VB.Net 2005?
• How to change the width of the tool tip.
• XmlTreeView
• migrate app from vista to xp
• Custom component that will create and add controls to a form
• PropertyGrid internals
• operating system supports for Visual Studio 2003 and 2005
• Desginer TypeLoad Failure