Windows XP look n Feel

  • Thread starter Thread starter Abhishek Bagga
  • Start date Start date
A

Abhishek Bagga

Hi!

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

Abhishek
 
Add this before showing any form:

Application.EnableVisualStyles();
Application.DoEvents();

HTH,
Alexander
 
Alexander Shirshov said:
Add this before showing any form:

Application.EnableVisualStyles();
Application.DoEvents();

Thanks for the response. I tried this but i think this works only if i have
XP running on my system.
I want a XP look n feel even on the Client systems which have Win 2000
running on them

Abhishek
 
Then short answer: you'll need to do all drawing yourself. It's a lot of
work, and my guess you don't have experience with GDI+ drawing? It's not
very complicated topic but it certainly has issues. My advice: forget it if
you can't find 3rd party library that suits you.

Alexander
 
Thanks for the reply.
Actually I have tried the drawing manuallly option as well but was able to
acheive only 60 % of my requirement and that too only for buttons
And moreover its quite time consuming
Maybe I'll search for some third party tool or dll
 
Affishek,

In addition be aware that using GDI extremely can make your applications
slow and because you show in this threads that it will not be on the most
modern computers, that can be a handicap.

Just my thought,

Cor
 
Application class is defined in System.Windows.Forms assembly.
EnableVisualStyles method was introduced in .NET 1.1. Are you using .NET
1.0?

HTH,
Alexander
 
No I'm not using .Net framework 1.1
thx
Alexander Shirshov said:
Application class is defined in System.Windows.Forms assembly.
EnableVisualStyles method was introduced in .NET 1.1. Are you using .NET
1.0?

HTH,
Alexander
 
I have already .Net framework 1.0347.then I first I uninstall it and after
that install .Net framework 1.1..unfortunately now when running visual
studio,it says u musy install C# compiler again :(..
does it need to install it??or can i configure it to work??
 
Alexander Shirshov said:
Add this before showing any form:

Application.EnableVisualStyles();
Application.DoEvents();

A similar question.

If I am writing an IDTExtensibility2 Office add-in, where should I put the abovementioned code?
 
Back
Top