473,795 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7461
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******** **********@TK2M SFTNGP11.phx.gb l...
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.Ena bleVisualStyles () 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.Ena bleVisualStyles () 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.Ena bleVisualStyles ();
Application.DoE vents();
....
}

and it will save you untold grief. Frankly I'd like to box the ears of
whoever failed to make the EnableVisualSty les() 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.c om> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Or you could call Application.Ena bleVisualStyles () 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.Ena bleVisualStyles () 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.Ena bleVisualStyles ();
Application.DoE vents();
...
}

and it will save you untold grief. Frankly I'd like to box the ears of
whoever failed to make the EnableVisualSty les() 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
14546
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 (Opera, Konqueror, etc.) So I need your feedback... Regards
1
4330
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 e-mail client: http://www.opera.com/m2/
0
2053
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 the available information based on the second combo box selection. But if I change my mind and select a different item in the second box, after the third box has been populated, the third box still retains the information that was previously...
4
3204
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 following code in my Sub Main ... System.Windows.Forms.Application.EnableVisualStyles() System.Windows.Forms.Application.DoEvents()
2
6206
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 criteria that I wanted to meet, but nothing did: - No reliance on a separate library - No unmanaged code - Easy subclassing of System.Windows.Forms.Combobox (i.e. no custom control monstrosity) - No extra funky features that I didn't need
30
4606
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 corresponding field in the lookup table. In my data table we store the ID in what I will call the 'key' field. == Description of the desired operation:
5
4353
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
5614
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 Vista when this mode is set, the control is all one color indicating that you can't type in it and looks really slick. How do i reproduce this behavior?
4
6169
by: active | last post by:
There are at least the following border styles: None FixedSingle Sizable
0
10438
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10214
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10164
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9042
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7540
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.