CSharp/C# >> Getting XP Style look and feel

by Abhi » Fri, 21 Nov 2003 15:24:26 GMT

How do i get XP Style look and feel for Controls in C#
window application. All the controls i am using are Custum
controls designed by inheriting .NET Common controls.

CSharp/C# >> Getting XP Style look and feel

by Miha Markic » Fri, 21 Nov 2003 17:05:35 GMT

Some controls support it some don't.
Generaly you'll have to set its FlatStyle (Button for example) property to
This is not enough.

If you are working with .net 1.1 you could call
Application.EnableVisualStyles() and Application.DoEvents() before
or (for both 1.0 and 1.1)
you'll have to include the manifest for your exe assembly (see the thread)
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=Xns9339883653E74perseusnewsxs4allnl %40207.46.248.16&rnum=3&prev=/groups%3Fas_q%3Dxp%2520theme%2520%26safe%3Dimages%26ie%3DUTF-8%26oe%3DUTF-8%26as_ugroup%3D*dotnet*%26lr%3D%26hl%3Den

Miha Markic - RightHand .NET consulting & software development
miha at rthand com

Similar Threads

1. Problem With Manifest (XP style Look and Feel)

2. Detect If XP-Style (Look&Feel)...

Thanks, I not found this thread...

I not considered that the style could change while the program is
 - maybe i ignore that ;-) or is there a way (except a timer or
WndProc) to catch that event ?

Many thanks


3. xp look and feel for winforms controls in non xp-based systems - .Net Framework

4. XP Look and feel in VSC#.NET

How can I get the Win XP look and feel in Visual Studio C# .NET? I have
tried the MSDN example with the manifest file, but it doesn't seem
to help.

5. XP look and feel in C# app - CSharp/C#

6. Windows XP look n Feel


I want my .net application to have a windows look n feel.
How can i enable this. I have tried 1 or 2 third party tools but not very 
satisfied with them
As far as possible I would like to avoid third party tools.
Is there any way out
Pls suggest


7. Win XP look n Feel for Menus,Toolbars - CSharp/C#

8. XP Look And Feel in VSC++6 and VSC++.NET

How can I get the Windows XP look and feel in Visual Studio C++ 6 and
in Visual Studio C++ .NET?