|
-
Mar 11th, 2001, 03:44 PM
#1
Thread Starter
New Member
... I want to be able to press an `OK` button what I also created and be able to access the page that is selected in the combo box.
I can`t find out how to do this because I just enter the combo names in the `List` property.
Any help on this one. Thanks.
-
Mar 11th, 2001, 03:51 PM
#2
I'm sorry, but you're a little choppy...can you be a little clearer?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Mar 11th, 2001, 03:56 PM
#3
Thread Starter
New Member
I have created a combo box ...
and a list of items in that box, using the `list` property on the right hand side of the screen. I can then select items in the combo box using the down arrow next to the box. The items atre different pages.
What I would like to do, is to select an item in the box, then click my `O.K` button (which is positioned below the box) and hopefully that will take me to that page.
I can`t figure out though how I can attach code to each of these items in the box.
Any Info.
Thanks
I have VB 5.0 Professional
-
Mar 11th, 2001, 03:59 PM
#4
Pages?
Webpages? Let me ask, do you have a webbrowser control on your form, or are you going through another browser?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Mar 11th, 2001, 04:10 PM
#5
Thread Starter
New Member
No
I am not using a web browser for this operation.
I just can`t quite figure out how to program the code to the individual items in the combo box ...
Any further info
-
Mar 11th, 2001, 04:14 PM
#6
if your just looking for a general answer...
Code:
Private Sub cmdOK_Click()
Page = Combo1.Text
'or
Page = Combo1.List(Combo1.ListIndex)
End Sub
if you need more specific help, I'll need to know what you mean by pages...
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
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
|