Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make Windows 95 style buttons in Visual C#?

I am writing a program and I am just curious of how to put buttons that look like in Windows 95:


(source: aos.co.za)

I am using Visual C# Express 2010 with Winforms.

Is this possible in the compiler/IDE I described above?

like image 280
Edward Karak Avatar asked Feb 02 '14 13:02

Edward Karak


1 Answers

Normally you should let the user make that choice. They have the ability to do so.

But, to answer the question, you need to disable the visual styles feature that was introduced in XP. Visual styles are enabled with a call to:

Application.EnableVisualStyles();

typically as the first act of your Main method. Remove that call, and your application will not be styled.

With styles:

enter image description here

Without styles:

enter image description here

like image 105
David Heffernan Avatar answered Oct 31 '22 07:10

David Heffernan