Windows Develop Bookmark and Share   
 index > Windows Forms General > Re stylesheet
 

Re stylesheet

HI all

I am using vs2005 windows application project using c# .i created stylesheet for my application . iadded one button in my form .i want to map classes in the stylesheet to that button.i am not able to find the stylesheet properties for the button can anyone help to solve this .

ganeshkuppuswamy  Friday, October 26, 2007 6:15 AM

Hi, ganeshkuppuswamy,

Based on my understanding, you want to assign a StyleSheet to a button in a WinForm, don't you?

However, thestyle of buttons in Windows Forms cannot bechanged with a StyleSheet.

StyleSheetsareused todefine styles for html elements.(Or say web forms, like html/aspx/php... )

To change the style in a Windows Form, we usually change its ForeColor, BackColor, BackgroundImage, FlatStyle and Image properties.

And you can check the following URLs to learn more of how to change the view of buttons.

http://www.codeproject.com/vb/net/leadit_flatbutton_control.asp

http://www.codeproject.com/useritems/IE7_style_TravelButton.asp

http://www.codeproject.com/useritems/VistaButton.asp

http://www.codeproject.com/cs/miscctrl/xp-style_button.asp

Hope this helps,

Regards

Yu Guo â€?MSFT  Tuesday, October 30, 2007 6:57 AM

HI all

I am using vs2005 windows application project using c# .i created stylesheet for my application . iadded one button in my form .i want to map classes in the stylesheet to that button.i am not able to find the stylesheet properties for the button can anyone help to solve this .

ganeshkuppuswamy  Friday, October 26, 2007 6:09 AM

Hi, ganeshkuppuswamy,

Based on my understanding, you want to assign a StyleSheet to a button in a WinForm, don't you?

However, thestyle of buttons in Windows Forms cannot bechanged with a StyleSheet.

StyleSheetsareused todefine styles for html elements.(Or say web forms, like html/aspx/php... )

To change the style in a Windows Form, we usually change its ForeColor, BackColor, BackgroundImage, FlatStyle and Image properties.

And you can check the following URLs to learn more of how to change the view of buttons.

http://www.codeproject.com/vb/net/leadit_flatbutton_control.asp

http://www.codeproject.com/useritems/IE7_style_TravelButton.asp

http://www.codeproject.com/useritems/VistaButton.asp

http://www.codeproject.com/cs/miscctrl/xp-style_button.asp

Hope this helps,

Regards

Yu Guo â€?MSFT  Tuesday, October 30, 2007 6:57 AM

You can use google to search for other answers

Custom Search

More Threads

• Windows.Forms.Button.text two-line text
• What is a Dat file? In the binary writer context
• print preview problem its urgent
• Object Reference not set to an intansce of an Object
• How Managed User control runs in Internet Explorer
• value not showing in datagridviewcombo box from the dataset filling the DGV
• Error 3201: "Cannot open backup device ..
• About System.Windows.Forms.Timer, Stop, and GC under heavy load.
• How do I create Forms that behave like the Visual Studio IDE?
• PropertyGrid difference between .NET 1.0 and .Net 2.0 with multiple objects selected