简体   繁体   中英

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?

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:

在此输入图像描述

Without styles:

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM