|
-
Sep 13th, 2005, 01:10 PM
#1
Thread Starter
Frenzied Member
combo box
is there a character casing propery for combo boxes?
It's tough being an unhandled exception...
___________
VB.NET 2008
VB.NET 2010
ORACLE 11g
CRYSTAL 11
-
Sep 13th, 2005, 05:27 PM
#2
Frenzied Member
Re: combo box
can you explain more, i dont quite understand the question ???
-
Sep 13th, 2005, 06:21 PM
#3
New Member
Re: combo box
You could look at
1. Font property which gets or sets the font displayed in the control.
2. FormatString property gets or sets the format specifier characters that indicate how a value is to be displayed. Look also at the FormattingEnabled property which gets or sets a value indicating whether formatting is applied to the DisplayMember property of the ListControl.
3. You could also look at formatting the DisplayMembers before loading the ComboBox.
HTH.
-
Sep 14th, 2005, 07:10 AM
#4
Thread Starter
Frenzied Member
Re: combo box
I want all the letters in a combo box to be upper case.
It's tough being an unhandled exception...
___________
VB.NET 2008
VB.NET 2010
ORACLE 11g
CRYSTAL 11
-
Sep 14th, 2005, 07:16 AM
#5
Re: combo box
There is no CharacterCasing property as there is for a TextBox. What have you set the DropDownStyle property to and is the control data-bound?
-
Sep 14th, 2005, 07:24 AM
#6
Thread Starter
Frenzied Member
Re: combo box
The dropdownstyle property is set to "DropDownList" and I'm populating the combo box from a dataset.
It's tough being an unhandled exception...
___________
VB.NET 2008
VB.NET 2010
ORACLE 11g
CRYSTAL 11
-
Sep 14th, 2005, 07:28 AM
#7
Re: combo box
Well then whatever data is in the DataSet is what's going to be displayed. If you really want the items all upper case then you'll have to make a copy of the values in another array or collection, capitalise them and bind that to the control. You may also be able to add an extra column to your DataTable and put an upper case copy of the column you're interested into it.
-
Sep 14th, 2005, 09:28 AM
#8
-
Sep 15th, 2005, 04:16 AM
#9
Frenzied Member
Re: combo box
Or do the obvious, and make the data you pull from the database uppercase by using the appropiate SQL command.
here is how you do it in sql server, this is the query example
"select upper(name) as namex from clients"
c u
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|