|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
EnableVisualStyles not working2005 standard edition with .net framework 2.0. Even when I enable visual styles the simple form looks like windows 2k not windows XP. The program looks the same whether or not EnableVisualStyles has been run. Very simple issue and any suggestions would be appreciated. Below is the code: using System; using System.Drawing; using System.Windows.Forms; class StudentTeaching : Form { [STAThread] public static void Main() { Application.EnableVisualStyles(); Application.Run(new StudentTeaching()); } public StudentTeaching() { Text = "Student Teaching"; AutoSize = true; //AutoSizeMode = AutoSizeMode.GrowAndShrink; Button btn = new Button(); btn.Parent = this; btn.Text = "test"; //btn.FlatStyle = FlatStyle.System; } } On 16 May 2006 12:28:27 -0700, Eva***@gmail.com wrote:
> I'm creating a program on a windows XP SP2 machine using visual studio Are you using a windows theme that supports visual style (the windows XP> 2005 standard edition with .net framework 2.0. Even when I enable > visual styles the simple form looks like windows 2k not windows XP. > The program looks the same whether or not EnableVisualStyles has been > run. Very simple issue and any suggestions would be appreciated. style not the Windows classic style)? Have you set the FlatStyle properties of all the controls that have this property to System? |
|||||||||||||||||||||||