473,467 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Controls look different in Design View then in the program.

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?

Nov 8 '06 #1
4 1275
What control is that? Can you be more specific?

chanmm

<ta*******@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
>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?

Nov 9 '06 #2

ta*******@gmail.com wrote:
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?
See the following discussion:

http://groups.google.com/group/micro...bdb611c7153084

Nov 9 '06 #3
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

"ta*******@gmail.com" wrote:
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?

Nov 9 '06 #4
Very helpful, thanks Bruce.

Nov 10 '06 #5

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

Similar topics

11
by: Georges Heinesch | last post by:
Hi. I have several controls at the same position. The are made visible one after the other using the .Visible property. While in the design view, I see only the upper control. How can I make...
16
by: TD | last post by:
This is the code under a command button - Dim ctl As Control For Each ctl In Me.Controls If ctl.BackColor <> RGB(255, 255, 255) Then ctl.BackColor = RGB(255, 255, 255) End If Next ctl
10
by: BBM | last post by:
Hi, I have been developing with C# User Controls and occasionally have a problem where I "lose" a control from the design surface of the User Control. The controls that I am using to build my...
6
by: Nathan Sokalski | last post by:
I am trying to dynamically add controls to my page, but am having trouble with controls such as buttons. I have been able to add simple controls such as Label controls, because they can be placed...
14
by: Jan Nielsen | last post by:
Hi In Microsoft Access it is possible to write code like this Sub test() DoCmd.OpenForm "TestForm", acDesign Dim a As Control For Each a In Forms("TestForm").Controls Do stuff Next End Sub
8
by: mark.norgate | last post by:
I've run into a few problems trying to use generics for user controls (classes derived from UserControl). I'm using the Web Application model rather than the Web Site model. The first problem...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
12
by: Bob Jones | last post by:
I have an odd business requirement and I think that the implementation is not correct in the terms of OOP development. Any help on the concepts would be very appreciated! We currently have a...
5
by: gerry | last post by:
I am trying to create a custom container control that will only ever contain a specific type of control. At design time, when a control of a different type is added to the container I would like...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.