Results 1 to 3 of 3

Thread: ComboBox Text Value

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2009
    Location
    Los Angeles
    Posts
    1,335

    ComboBox Text Value

    I am having a brain fart on what should be simple for me by now.
    I want to get the text of selcted value in a combox into a variable

    Code:
     Dim sslValue As String = ComboBox1.Text
                MsgBox(sslValue)
    My msgbox keeps display 0 no matter what i try

    SelectedValue
    SelectedItem

    etc..

    any help

    Thanks

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,419

    Re: ComboBox Text Value

    do you have an item selected in your combobox?

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2009
    Location
    Los Angeles
    Posts
    1,335

    Re: ComboBox Text Value

    Never mind I knew i was having a brain fart
    i was executing code in a for loop that never had anything

    sorry to waste anyones time

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