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? 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? 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
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?
Very helpful, thanks Bruce. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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
|
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...
|
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...
|
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
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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: 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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
| |