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

早过忘川 提交于 2019-12-10 03:32:00

问题


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?


回答1:


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:



来源:https://stackoverflow.com/questions/21511140/how-can-i-make-windows-95-style-buttons-in-visual-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!