Windows Develop Bookmark and Share   
 index > Windows Forms General > Customizing Toolstrip buttons & ToolStripButton
 

Customizing Toolstrip buttons & ToolStripButton

Hello,

I want to customize the ToolStripButton. I want to change OnMouseOver shade (yellow to orange) and OnClick & hold shade (orange to yello) of the ToolStripButton.

I can't see any properties devinde for that. Can any one please tell me how to do that? If I need to write my own control for this please give me little idea about how to that too. I'm a newbie here.
yaazel  Tuesday, September 15, 2009 11:20 AM
If you want to customize a WF control, start here: "Walkthrough: Inheriting from a Windows Forms Control with Visual C# (or Basic)" inyour help files.
JohnWein  Tuesday, September 15, 2009 3:34 PM

Hi,

You can change the backcolor of the toolStripButton when mousehover and mouthclick. And then set the color back to SystemColors.Control.


Related threads:

http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/72ac8ee7-6146-451a-9df5-5e819c332501

http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/a81474ee-6cd2-41fa-99d7-a4de74298243

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Tuesday, September 22, 2009 8:53 AM
Post the code for your class that inherits the ToolStripButton.
JohnWein  Tuesday, September 15, 2009 11:50 AM
I used designer to make the form application. So, the code is just the Deisgner generation one. There is no class that inherits from ToolStripButton. I just created instances of ToolStripButton.
yaazel  Tuesday, September 15, 2009 3:05 PM
If you want to customize a WF control, start here: "Walkthrough: Inheriting from a Windows Forms Control with Visual C# (or Basic)" inyour help files.
JohnWein  Tuesday, September 15, 2009 3:34 PM

Hi,

You can change the backcolor of the toolStripButton when mousehover and mouthclick. And then set the color back to SystemColors.Control.


Related threads:

http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/72ac8ee7-6146-451a-9df5-5e819c332501

http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/a81474ee-6cd2-41fa-99d7-a4de74298243

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Tuesday, September 22, 2009 8:53 AM

You can use google to search for other answers

Custom Search

More Threads

• A generic error occurred in GDI+.
• date time picker - default values
• Problem with Minimizing both Forms
• Splash screen problem
• Is using too many DataSets in an app bad?
• In VS2005, The Component Container does not have a reference to the Form
• MDI Forms - problem with ToolStripMenuItems
• How to share an object instance through all forms just like vs6.0's global variables?
• DateTime Picker Format Problem
• How do i set a label's font to Bold and Underlined during runtime at the same time?