By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,895 Members | 1,106 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,895 IT Pros & Developers. It's quick & easy.

Windows XP look n Feel

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
14 Replies


P: n/a
Add this before showing any form:

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

HTH,
Alexander

"Abhishek Bagga" <abhishek @ sikhya dot com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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

Nov 16 '05 #2

P: n/a

"Alexander Shirshov" <al*******@omnitalented.com> wrote in message
news:OX**************@TK2MSFTNGP09.phx.gbl...
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
HTH,
Alexander

"Abhishek Bagga" <abhishek @ sikhya dot com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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


Nov 16 '05 #3

P: n/a
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

"Abhishek Bagga" <abhishek @ sikhya dot com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

"Alexander Shirshov" <al*******@omnitalented.com> wrote in message
news:OX**************@TK2MSFTNGP09.phx.gbl...
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

HTH,
Alexander

"Abhishek Bagga" <abhishek @ sikhya dot com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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



Nov 16 '05 #4

P: n/a
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

"Alexander Shirshov" <al*******@omnitalented.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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

"Abhishek Bagga" <abhishek @ sikhya dot com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

"Alexander Shirshov" <al*******@omnitalented.com> wrote in message
news:OX**************@TK2MSFTNGP09.phx.gbl...
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

HTH,
Alexander

"Abhishek Bagga" <abhishek @ sikhya dot com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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



Nov 16 '05 #5

P: n/a
try to search in this website www.codeproject.com/
"Alexander Shirshov" <al*******@omnitalented.com> wrote in message
news:OX**************@TK2MSFTNGP09.phx.gbl...
Add this before showing any form:

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

HTH,
Alexander

"Abhishek Bagga" <abhishek @ sikhya dot com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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


Nov 16 '05 #6

P: n/a
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
Nov 16 '05 #7

P: n/a
I think you can find this link useful :
http://www.codeproject.com/cs/miscct...yle_button.asp
Nov 16 '05 #8

P: n/a
I can't find the Application.EnableVisualStyles() method..where
is located??

"Alexander Shirshov" <al*******@omnitalented.com> wrote in message
news:OX**************@TK2MSFTNGP09.phx.gbl...
Add this before showing any form:

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

HTH,
Alexander

"Abhishek Bagga" <abhishek @ sikhya dot com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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


Nov 16 '05 #9

P: n/a
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

"perspolis" <re*****@hotmail.com> wrote in message
news:ut**************@tk2msftngp13.phx.gbl...
I can't find the Application.EnableVisualStyles() method..where
is located??

"Alexander Shirshov" <al*******@omnitalented.com> wrote in message
news:OX**************@TK2MSFTNGP09.phx.gbl...
Add this before showing any form:

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

HTH,
Alexander

"Abhishek Bagga" <abhishek @ sikhya dot com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
> 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
>



Nov 16 '05 #10

P: n/a
No I'm not using .Net framework 1.1
thx
"Alexander Shirshov" <al*******@omnitalented.com> wrote in message
news:#f*************@TK2MSFTNGP12.phx.gbl...
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

"perspolis" <re*****@hotmail.com> wrote in message
news:ut**************@tk2msftngp13.phx.gbl...
I can't find the Application.EnableVisualStyles() method..where
is located??

"Alexander Shirshov" <al*******@omnitalented.com> wrote in message
news:OX**************@TK2MSFTNGP09.phx.gbl...
Add this before showing any form:

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

HTH,
Alexander

"Abhishek Bagga" <abhishek @ sikhya dot com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
> 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
>



Nov 16 '05 #11

P: n/a
Then look here: http://support.microsoft.com/Default.aspx?id=303636

"perspolis" <re*****@hotmail.com> wrote in message
news:OR**************@TK2MSFTNGP09.phx.gbl...
No I'm not using .Net framework 1.1

Nov 16 '05 #12

P: n/a
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" <al*******@omnitalented.com> wrote in message
news:#P**************@tk2msftngp13.phx.gbl...
Then look here: http://support.microsoft.com/Default.aspx?id=303636

"perspolis" <re*****@hotmail.com> wrote in message
news:OR**************@TK2MSFTNGP09.phx.gbl...
No I'm not using .Net framework 1.1


Nov 16 '05 #13

P: n/a

"Alexander Shirshov" <al*******@omnitalented.com> wrote in message news:OX**************@TK2MSFTNGP09.phx.gbl...
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?

Nov 16 '05 #14

P: n/a

"Alexander Shirshov" <al*******@omnitalented.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl...
"perspolis" <re*****@hotmail.com> wrote in message news:OR**************@TK2MSFTNGP09.phx.gbl...
No I'm not using .Net framework 1.1


Then look here: http://support.microsoft.com/Default.aspx?id=303636


Should I also set the FlatStyle property to System even if I use the 1.1 framework and call Application.EnableVisualStyles() ?
Nov 16 '05 #15

This discussion thread is closed

Replies have been disabled for this discussion.