Groups > Borland > Delphi winforms controls > Re: WinForm XP Style




WinForm XP Style

WinForm XP Style
Mon, 10 Jul 2006 10:39:41 +020
Hi everybody,

Is there any way to give a delphi.net winform the XP style? I've tried to 
use the TXPManifest but it doesn't works.

Any other idea??

Thanks... 

Post Reply
Re: WinForm XP Style
Tue, 11 Jul 2006 08:58:36 +020
Add

Application.EnableVisualStyles to your project source main thread as e.g.

[STAThread]
begin
  Application.EnableVisualStyles;
  Application.Run(TWinForm10.Create);
end.

On older versions of .net you might need to add a

Application.DoEvents as well

Regards Horst 

Post Reply
about | contact