How can I read from a Drop-Down List at run time in VS using VB language?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Faez
    New Member
    • Oct 2006
    • 10

    How can I read from a Drop-Down List at run time in VS using VB language?

    How can i add an index name (text) of a Drop-Down List to a TextBox at run time, using Visual Basic language, in Visual Studio 2005?

    for example:
    drop down list for student's age are as followed;
    16-18
    19-21
    22+

    I want to capture the student option onto a TextBox, for example if a student chose option one (16-18), I want the TextBox at the button of the page to say student age is "16-18".

    Thank you,
  • scripto
    New Member
    • Oct 2006
    • 143

    #2
    Private Sub List1_Click()

    Text1.Text = List1.Text

    End Sub

    does this work for you?

    Comment

    • Faez
      New Member
      • Oct 2006
      • 10

      #3
      Thank You!

      Comment

      Working...