|
-
September 9th, 2002, 05:38 AM
#1
Buttons can't look in XP style?
Buttons always look in the old style. Is it also true in your computers or just my computer went crazy?
Code:
public class x
{
public static void Main()
{
System.Windows.Forms.Application.Run(new xx());
}
}
public class xx:System.Windows.Forms.Form
{
System.Windows.Forms.Button xxx=new System.Windows.Forms.Button();
public xx()
{
xxx.Location=new System.Drawing.Point(100,100);
xxx.Text="XP?";
this.Controls.Add(xxx);
}
}
I've created a "FILENAME.manifest" file, but the button still looks in the old style.

Please let me know if my computer went crazy. I'll reinstall .NET Framework or even Windows.
Last edited by Sin Jeong-hun; September 9th, 2002 at 05:57 AM.
-
September 9th, 2002, 06:27 AM
#2
Self answer : Solution
It was simeple. I found it on the internet.
The solution is,
Set control's FlatStyle property to System.
That's all.
I found this at
http://www.c-sharpcorner.com/Code/20...PStyleApps.asp
ALEA JACTA EST ET TEMPUS FUGIT
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|