Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Styling in WinForm Applications?
 

Styling in WinForm Applications?

I am working on this WinForm application and I am almost on the verge of completion. I want to add some style to the application and was wondering how to add styling to WinForm controls?
randeep_k  Monday, October 01, 2007 2:32 AM

Hi, randeep_k,

Based on my understanding, you want to add some custom styles to your Windows Application, don't you?

There are several ways to add custom styles.

1) Use Windows themes.

This could be done with VisualStyle enabled in your application.

http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles.aspx

2) Use some images to act as the background of your Windows Form

This sample is really nice.

http://www.codeproject.com/cs/miscctrl/AlphaForm.asp

3) You can use images to work as your controls as well.

Here is a sample of how to use bitmap to work as the region of your form and controls.

http://www.codeproject.com/csharp/bmprgnform.asp

Hope this helps,

Regards

Yu Guo â€?MSFT  Wednesday, October 03, 2007 7:51 AM

Hi, randeep_k,

Based on my understanding, you want to add some custom styles to your Windows Application, don't you?

There are several ways to add custom styles.

1) Use Windows themes.

This could be done with VisualStyle enabled in your application.

http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles.aspx

2) Use some images to act as the background of your Windows Form

This sample is really nice.

http://www.codeproject.com/cs/miscctrl/AlphaForm.asp

3) You can use images to work as your controls as well.

Here is a sample of how to use bitmap to work as the region of your form and controls.

http://www.codeproject.com/csharp/bmprgnform.asp

Hope this helps,

Regards

Yu Guo â€?MSFT  Wednesday, October 03, 2007 7:51 AM

You can use google to search for other answers

Custom Search

More Threads

• concetenate control in winform
• can't override size property
• Preprocessor Macros with Windows Form Designer Compiler
• Second screen
• Designer wont save property on overridden datagridviewcolumn
• Inconsistent designer behavior
• ActiveX design does not save
• Closing multiple instances of a form
• Binary serialization to a shared store, is it possible?
• DefayltValue on a propery of Or'd values