|
-
Jul 15th, 2007, 09:00 PM
#1
Thread Starter
Member
[2005] Combo Box Question
Hey, got a quick question.
I have a Combo Box. These are the Items in the Combo Box:
5
10
15
20
30
45
60
How would i say if "5" is selected then .....
Or if "15 is selected then....
Btw i have made it so they cannot be edited, there is a drop down arrow and they select one of the options.
Another Question is regarding the Timer option.
(Background info)
I am making a lock out screen. I want to have an option of "Auto Lock" after (Number) minutes. That is what i wanted to use the Combo box for.
So i was wondering do i have to create a separate timer for each option (5, 10, 15, 20) or can i create like a function of some kind (think its that). Not sure if I'm heading in the right direction or not.
Thanks to anyone who helps.
-
Jul 15th, 2007, 10:38 PM
#2
Hyperactive Member
Re: [2005] Combo Box Question
I would use one timer. And in the Sub that you create to handle the combobox, just set the interval to the timer in that sub.
As far as the values of the combo box, you can do it multiple ways. One way would be using the combo boxes SelectedIndexChanged event and having a Select statement evaluate which value was selected then you can set your timer interval that way.
-
Jul 15th, 2007, 11:19 PM
#3
Re: [2005] Combo Box Question
val(combo1.text) should return the numerical value of the chosen item.
-
Jul 16th, 2007, 05:50 AM
#4
Thread Starter
Member
Re: [2005] Combo Box Question
Thanks for the help, it was appreciated.
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
|