Making a simple button
-
Is there a way to create a simple button with no xp skins or anything? (like the buttons in minesweeper)? I tried to disable UseVisualStyleBackColor but it still shows a blue rectangle on the button after it's been clicked.
-
Is there a way to create a simple button with no xp skins or anything? (like the buttons in minesweeper)? I tried to disable UseVisualStyleBackColor but it still shows a blue rectangle on the button after it's been clicked.
You might find that one of the various FlatStyle options on Button does the job. Otherwise just draw the button yourself in an overridden OnPaint.
using System.Beer;
-
Is there a way to create a simple button with no xp skins or anything? (like the buttons in minesweeper)? I tried to disable UseVisualStyleBackColor but it still shows a blue rectangle on the button after it's been clicked.
If you're using Visual Studio open up Program.cs and remove the line
Application.EnableVisualStyles();
inside theMain
function. This is what tells the app to use the Windows XP theme; doing this will remove the visual styles from every control in the app.