473,385 Members | 1,325 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,385 software developers and data experts.

VS 2005 control look and feel

I just upgraded one of my projects to VS 2005 and I noticed that all of my
controls such as the button and tab control do not reflect the new look that
is offered by the new VS 2005.

After playing around with it I notice that the new look is shown only on
design view and I also noticed that if I create a VS 2005 project from
scratch the controls reflect the new look during design and runtime.

Anyone knows what's going on? Thanks.

Dec 16 '05 #1
3 1347
The Main method in new projects looks like this:
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
Application.Run(new Form1());
}

Those first 2 Application method calls were not included in the default
project template in VS2003, so they are probably not in your upgraded
Main method. Add them, and you will get the upgraded look and feel.

Joshua Flanagan
http://flimflan.com/blog
Dec 16 '05 #2
Thanks that worked!

By the way, I created a new class called "Program" and added the Main()
method there just like VS 2005 does by default. Do you know if this class
has some special meaning or if it is there just to better organize the
project information?
"Joshua Flanagan" <jo**@msnews.com> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl...
The Main method in new projects looks like this:
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
Application.Run(new Form1());
}

Those first 2 Application method calls were not included in the default
project template in VS2003, so they are probably not in your upgraded Main
method. Add them, and you will get the upgraded look and feel.

Joshua Flanagan
http://flimflan.com/blog

Dec 16 '05 #3
Just there for organization. The static void Main() method could be in
any class in your project.

Dec 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Armin Rigo | last post by:
Post-EuroPython 2005 PyPy Sprint 1st - 7th July 2005 ====================================================== The next PyPy sprint is scheduled right after EuroPython 2005 in Gothenborg, Sweden. ...
10
by: Dean Slindee | last post by:
Does anybody know to whom I can send this letter so that it hits home before Visual Studio 2005 goes production? Dear Microsoft Visual Studio 2005 developers, This is a request for you to...
0
by: fiona | last post by:
Innovasys Ltd., a leader in help authoring and documentation tools, today announced the inclusion of a tailored version of the Innovasys HelpStudio help authoring product, HelpStudio Lite, in the...
3
by: steve | last post by:
Hi All I have set a splash screen form as the application splash screen in VB.net 2005 I t runs fine but stays on top when my login screen appears How can I shut the splash screen down when...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
15
by: Charles Law | last post by:
In the build output appears ========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ========== However, the compiler does not generate any errors, and the Errors list is empty. This is an...
4
by: Goran Djuranovic | last post by:
Hi all, I am experiencing a strange thing happening with a "designer.vb" page. Controls I manually declare in this page are automatically deleted after I drop another control on a ".aspx" page. -...
3
by: Allen Chen [MSFT] | last post by:
Hi Richard, Quote from Richard================================================== However I also want to be able to remove the panes. I have tried to include this, but find that when I first...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.