473,405 Members | 2,160 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,405 software developers and data experts.

Combobox borderstyle or flatstyle

ORC
With buttons and textboxes etc. it is possible to set the orderstyle or
flatstyle but what about comboboxes? - is it possible to make them more up
to date?

Thanks,
Ole
Nov 16 '05 #1
3 7440
Not in VS.NET 2003. It will be possible in VS 2005 (Whidbey):

http://www.fawcette.com/vsm/2004_01/...tures/dollard/

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
"ORC" <or*@sol.dk> escribió en el mensaje
news:%2******************@TK2MSFTNGP11.phx.gbl...
With buttons and textboxes etc. it is possible to set the orderstyle or
flatstyle but what about comboboxes? - is it possible to make them more up
to date?

Thanks,
Ole

Nov 16 '05 #2
Or you could call Application.EnableVisualStyles() in main() and you'll find
that you get the new XP styling on your comboboxes, which is sort of flat
with a sexed up button.

If you use visual styles remember to pump the message queue after you call
Application.EnableVisualStyles() and before you create any objects that
cache imagelists, or you'll get freaky COM errors at unexpected times.

In fact just make it policy to always code like this

void main() {
....
Application.EnableVisualStyles();
Application.DoEvents();
....
}

and it will save you untold grief. Frankly I'd like to box the ears of
whoever failed to make the EnableVisualStyles() method pump the message
queue itself. It's always safe to do and sometimes crucial. You'd be amazed
how many widgets use imagelists internally.

To get the styles to apply to text boxes and for that matter anything that
has a FlatStyle property, set the FlatStyle to System. Anything that lacks a
FlatStyle property, you just have to pray. With comboboxes you're in luck.
Nov 16 '05 #3
ORC
Thanks! looks great. Just ensure that I understand ir correctly: is DoEvents
enough to pump the message que? Nothing else but the 2 lines are necessary?

Thanks,
Ole
"Peter Wone" <pe****@wamoz.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Or you could call Application.EnableVisualStyles() in main() and you'll find that you get the new XP styling on your comboboxes, which is sort of flat
with a sexed up button.

If you use visual styles remember to pump the message queue after you call
Application.EnableVisualStyles() and before you create any objects that
cache imagelists, or you'll get freaky COM errors at unexpected times.

In fact just make it policy to always code like this

void main() {
...
Application.EnableVisualStyles();
Application.DoEvents();
...
}

and it will save you untold grief. Frankly I'd like to box the ears of
whoever failed to make the EnableVisualStyles() method pump the message
queue itself. It's always safe to do and sometimes crucial. You'd be amazed how many widgets use imagelists internally.

To get the styles to apply to text boxes and for that matter anything that
has a FlatStyle property, set the FlatStyle to System. Anything that lacks a FlatStyle property, you just have to pray. With comboboxes you're in luck.

Nov 16 '05 #4

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

Similar topics

1
by: Oliver Hoehle | last post by:
Hello! This ist the source-code for an editable combobox implemented with HTML,CSS and Javascript. I have tested it with IE and Mozilla. But I don't know, if it will work in other browsers...
1
by: Morten Wennevik | last post by:
Like a Button and RadioButton has a FlatStyle and a TextBox has a BorderStyle, is it possible to set a ComboBox to appear in the same way? No 3D borders. -- Using M2, Opera's revolutionary...
0
by: Doug | last post by:
This is a repost of an item that I still cannot resolve. I have 3 combo boxes. The first leads to the second to the third. When I have selected a value in the second box, the third box shows...
4
by: Mika M | last post by:
Hello! I'm using VB.NET 2003 and Windows Forms application type. Question: Why ComboBoxes are not changing their arrearance to XP-Styles look althought other UI Components does when I use the...
2
by: Don | last post by:
I've looked high and low for some code that will allow me to have a combobox with a flat borderstyle. I found a few examples, but nothing that was really usable for me. I had the following...
30
by: dbuchanan | last post by:
ComboBox databindng Problem == How the ComboBox is setup and used: My comboBox is populated by a lookup table. The ValueMember is the lookup table's Id and the DisplayMember is the text from a...
5
by: AbdulGafoor GK | last post by:
hi i am using visual studio 2005. i could make combobox flat, but without border. is there any way to draw a border for it ?!!! thanks
6
by: Nathan Laff | last post by:
Why when I inherit a ComboBox and make no code changes, when I set the new control DropDownStyle to dropDownList it appears different than the standard ComboBox control on Vista? In Windows...
4
by: active | last post by:
There are at least the following border styles: None FixedSingle Sizable
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: 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
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.