I have a windows-form which runs without any problem and displayed well. But if I run an instance of this windows-form from an XNA project my standard buttons are displayed as flat versions. How can I fix it ?
Asked
Active
Viewed 784 times
1 Answers
1
You need to add manifest file to.your.project. Check this question for info how to do it: WPF MessageBox window style

Community
- 1
- 1

Nemanja Boric
- 21,627
- 6
- 67
- 91
-
1System.Windows.Forms.Application.EnableVisualStyles(); -> this command solves the problem [i get it from the link you have posted, thank you] – icaptan Mar 30 '12 at 11:04