Results 1 to 4 of 4

Thread: [2005] Combo Box Question

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2006
    Posts
    63

    [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.

  2. #2
    Hyperactive Member
    Join Date
    Dec 2004
    Posts
    326

    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.

  3. #3
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: [2005] Combo Box Question

    val(combo1.text) should return the numerical value of the chosen item.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2006
    Posts
    63

    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
  •  



Click Here to Expand Forum to Full Width