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

Q: Character Casing in a ComboBox

Hi!

Is it possible to enable Charater Casing in a ComboBox, if, how?

As of now i am using KeyUp event to make sure that the char entered is
Uppercase.

Regards
Martin Arvidsson
Nov 17 '05 #1
2 2254
> Is it possible to enable Charater Casing in a ComboBox, if, how?

You can enable the OS support for this by deriving your own control class
from Combobox, override the CreateParams property and include the
CBS_UPPERCASE style flag.
Mattias

Nov 17 '05 #2
A short example would be great, since i am kinda new to C#

Regards
Martin

"Mattias Sjögren" <Ma***********@discussions.microsoft.com> skrev i
meddelandet news:97**********************************@microsof t.com...
Is it possible to enable Charater Casing in a ComboBox, if, how?


You can enable the OS support for this by deriving your own control class
from Combobox, override the CreateParams property and include the
CBS_UPPERCASE style flag.
Mattias

Nov 17 '05 #3

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

Similar topics

13
by: Mr. B | last post by:
Here's the situation... You've a combobox with Items already added. Say they look like this (or even lines of text): 10-00-232 10-00-256 10-01-006 10-01-213 10-02-200
3
by: blackdevil1979 | last post by:
Hi, I use a combobox to get a list of fruits (_SelectedIndexChanged)... I manage to get Apple, Orange, Grape, The question: How to get rid of the last comma (Grape , <--)
8
by: Zlatko Matiæ | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
3
by: UmmagummA | last post by:
How to make a ComboBox to display characters only in Upper or Lower Case as you type? I was trying to override OnKeyDown and OnKeyPress but coudn't figure it out. The problem is that in...
4
by: Shabs | last post by:
Hi, We are having this problem here on our project where we store all firstnames, lastnames in the oracle database in uppercase, when we retrieve the data to be used in web application and...
3
by: TT (Tom Tempelaere) | last post by:
Hay there, I'm writing my own DataGridComboBoxColumn because .NET 1.1 does not have one (I hope .NET 2.0 supplies one). I based it on this article:...
6
by: suzy | last post by:
i have seen examples where the ~ character is used in the web.config file when storing directories. eg: ~/files/data.xml what does that character mean?
5
by: Kay | last post by:
Hi All, I'm trying to write a small sub/function to replace some (invalid) character in a combo box, or may be even text box. For example, I have several combo boxes that allows user to select...
0
by: Dr. Colombes | last post by:
I've used a very nice Keystroke Logger Python shareware program (EVDEV.py), written by Micah Dowty. But I couldn't find a dedicated ASCII Character Logger program. Does anyone know of an ASCII...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.