|
-
Jun 16th, 2004, 12:06 PM
#1
Thread Starter
Addicted Member
Combo box locked
Hi, i am trying to lock the combo box so that user can't type in combo box, but they can still select 1 from the list
also how can i populate what the combo box say into a label
i am currently doin
VB Code:
lbldatetime.caption = cboHr.text
but it aint working :s
tnx adz
-
Jun 16th, 2004, 12:10 PM
#2
Lively Member
select style #2 for it. Then the user cant type into it.
-
Jun 16th, 2004, 12:25 PM
#3
Thread Starter
Addicted Member
Great but how can i select the txt i want in the to start with
coz at mo it comes up the the combo's name
and how do i populate the label with it
Last edited by k0r54; Jun 16th, 2004 at 12:34 PM.
-
Jun 16th, 2004, 12:26 PM
#4
When you set the style to 2, the text must exist in the list in order to be displayed.
The control's name should only be there at design time.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jun 16th, 2004, 12:32 PM
#5
If you want the first element to be automatically selected when you've populated the ComboBox, insert Combo1.ListIndex = 0 after filling the combo.
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
|