-
January 23rd, 2006, 10:33 PM
#1
Get Combo Box Component
Hi everyone :
I am doing one app, and in my dialog box , there is one control with Combo Box with dropdown ,now I want to get combo box component , how to do ??
any help would be very appreciated .
Thanks in advance !
Regards.
-
January 23rd, 2006, 11:27 PM
#2
Re: Get Combo Box Component
This will show you how to get the item that is clicked on, if that is your question.
Code:
Option Explicit
Private Sub Combo1_Click()
MsgBox Combo1.List(Combo1.ListIndex) & " is ListIndex # " & Combo1.ListIndex
End Sub
Private Sub Form_Load()
Dim x As Integer
For x = 100 To 1 Step -1
Combo1.AddItem x
Next x
Combo1.List(1) = "test"
End Sub
-
January 24th, 2006, 12:10 AM
#3
Re: Get Combo Box Component
Very good , that is what I want . Thank you , dglienna.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|