Results 1 to 2 of 2

Thread: combo box

  1. #1

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

    combo box

    I'm using this code to make sure there's data in the drop down...

    CmbCards.Items.Count <= 0

    whats the code to check if they selected something from the dropdown?

    cmbcards.text = ""

    ?
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  2. #2
    Lively Member
    Join Date
    Feb 2003
    Location
    UK
    Posts
    95
    You can use ComboBox.SelectedIndex, which is a zero based index of the selected item, or -1 if nothing is selected.

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