Windows XP look n Feel

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
 
A

Alexander Shirshov

Add this before showing any form:

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

HTH,
Alexander
 
A

Abhishek Bagga

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
 
A

Alexander Shirshov

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
 
A

Abhishek Bagga

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
 
C

Cor Ligthert

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
 
A

Alexander Shirshov

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
 
P

perspolis

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
 
P

perspolis

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??
 
A

Alex

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top