473,397 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Windows XP look n Feel

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
14 1706
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

"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
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
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
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
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
I think you can find this link useful :
http://www.codeproject.com/cs/miscct...yle_button.asp
Nov 16 '05 #8
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
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
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
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
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

"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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: TPJ | last post by:
GUI's etc: PyGtk on Windows "(...) So if someone develops mainly for X and just wants to make sure that it is not impossible to run on Windows, you can use PyGTK. (...)", July 2nd, 1999 pyGTK...
0
by: Rafael Veronezi | last post by:
I would know if ASP.Net prevent a way for calling Pop-up Windows directly, beside using javascript... And I would know if there's a way to exchange values between those windows. Look at my...
1
by: Aaron | last post by:
My company has been using ActiveX Controls embedded on ASP pages (obviously using the <OBJECT> tag) to give our Web Application the same look and feel of a windows application. We are now going...
1
by: Martin Feuersteiner | last post by:
Dear Group I noticed that the Win XP look & feel (button styles etc) gets lost when running a page as .hta instead of .htm. Is there any way to run it as .hta and keep the style? Why is it? ...
2
by: Rajendra | last post by:
Hi All Can any one plz help me how to give a windows form a look & feel of XP for buttons & Grid running on win2K, I heard of Application.EnableVisualStyles and Manifest but its not working can...
8
by: diatom | last post by:
Is it possible to create a windows form as an abstract class? Let me explain ... I am writing a windows applciation where I will need around 100 dialogs - each with a similar look, feel, and...
3
by: Scirious | last post by:
People, does .Net (C#) support plugable look and feels as java does? So I can easily change the look of my softwares? TIA, Scirious.
2
by: ARTMIC | last post by:
Hello i have an old project from Visual studio 2003, and when i convert it to the new Visual Studio 2005 project, everything works perfectly, the exception being the look/feel of the application...
4
by: windypower | last post by:
I'm looking for a way to implement desktop notifications (much like an instant messaging program or a mail notifier) within my Python application, on Windows only (no Gtk/Galago, please). I need no...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.