E
Evans3
I'm creating a program on a windows XP SP2 machine using visual studio
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.
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;
}
}
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.
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;
}
}