0

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 ?

This is how buttons look like if I open it from XNA-Project

This is how buttons look like if I run it from its own exe

David Hall
  • 32,624
  • 10
  • 90
  • 127
icaptan
  • 1,495
  • 1
  • 16
  • 36

1 Answers1

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
  • 1
    System.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