Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / November 2006

Tip: Looking for answers? Try searching our database.

Controls look different in Design View then in the program.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
taurin423@gmail.com - 08 Nov 2006 22:38 GMT
I am working in Visual Studio 2005 using C#.  The program I am working
on used to use the 1.1 framework, but then we upgraded to VS 2005.
I've noticed that every time we put a windows form control in (such as
textbox, checkbox, groupbox, etc) they look like standard .NET 2.0
controls.  However, when we compile and run the program, all of the
controls look like .NET 1.1 controls.  Is there some setting I don't
know about to control this style?  How can I make them appear like 2.0
controls in the program itself, not just the designer?
chanmm - 09 Nov 2006 01:46 GMT
What control is that? Can you be more specific?

chanmm

>I am working in Visual Studio 2005 using C#.  The program I am working
> on used to use the 1.1 framework, but then we upgraded to VS 2005.
[quoted text clipped - 4 lines]
> know about to control this style?  How can I make them appear like 2.0
> controls in the program itself, not just the designer?
Bruce Wood - 09 Nov 2006 04:36 GMT
> I am working in Visual Studio 2005 using C#.  The program I am working
> on used to use the 1.1 framework, but then we upgraded to VS 2005.
[quoted text clipped - 4 lines]
> know about to control this style?  How can I make them appear like 2.0
> controls in the program itself, not just the designer?

See the following discussion:

http://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms/br
owse_frm/thread/98bdb611c7153084

taurin423@gmail.com - 10 Nov 2006 17:53 GMT
Very helpful, thanks Bruce.
Ciaran O''Donnell - 09 Nov 2006 09:32 GMT
In the Main() function, put the call (which is added in new 2.0 apps
automatically)
Application.EnableVisualStyles()

This will use the most up to date CommonControls library.

HTH

Ciaran O'Donnell

> I am working in Visual Studio 2005 using C#.  The program I am working
> on used to use the 1.1 framework, but then we upgraded to VS 2005.
[quoted text clipped - 4 lines]
> know about to control this style?  How can I make them appear like 2.0
> controls in the program itself, not just the designer?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.