Results 1 to 9 of 9

Thread: combo box

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    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

  2. #2
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Re: combo box

    can you explain more, i dont quite understand the question ???

  3. #3
    New Member
    Join Date
    Sep 2005
    Posts
    3

    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.

  4. #4

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    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

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    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

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  8. #8
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Cool Re: combo box

    Or do the obvious, and make the data you pull from the database uppercase by using the appropiate SQL command.
    ~Peter


  9. #9
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    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
  •  



Click Here to Expand Forum to Full Width