Results 1 to 4 of 4

Thread: [resolved] ComboBox

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Posts
    143

    Resolved [resolved] ComboBox

    When I click on one of the options in the dropdown, I want the text to be displayed in a text box. What am I doing wrong?

    VB Code:
    1. Dim sText As String
    2. Dim lIndex As Long
    3.  
    4. sText = Combo1.Text
    5. lIndex = Combo1.ListIndex + 1
    6. ' Display the message box
    7. Text3.Text = "" & sText & ""
    Last edited by Hack; Feb 10th, 2006 at 06:41 AM. Reason: Added green "resolved" checkmark

  2. #2
    Lively Member
    Join Date
    Aug 2004
    Location
    Philippines
    Posts
    117

    Re: ComboBox

    I'll try to help. On what event do you put this code?
    Ask a question and you're a fool for three minutes; do not ask a question and you're a fool for the rest of your life. (Chinese Proverb)

    ^ _ ^

    hope to earn reputation soon....

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Posts
    143

    Re: ComboBox

    I seem to haved fixed it myself. Thanks for the offer of helping.

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: ComboBox


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