Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Combobox Help

combobox

  • Please log in to reply
1 reply to this topic

#1 HelpMePlz

HelpMePlz

    CC Newcomer

  • Member
  • PipPip
  • 20 posts

Posted 25 April 2012 - 09:10 AM

Back again everyone (lol).

I have a combo box with three options in it.

I want something different to happen when a user selects each individual option.


I.E the three options are '1 week' , '2 weeks' and '3 weeks'.

Whenever the user selects 1 week I want the program to work out the percentage change for 1 week. The same thing applies for the other two.

How do I know which of these three options has been selected when I use the 'OnChange' event?
  • 0

#2 Luthfi

Luthfi

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1320 posts
  • Programming Language:PHP, Delphi/Object Pascal, Pascal, Transact-SQL
  • Learning:C, Java, PHP

Posted 25 April 2012 - 10:28 AM

Back again everyone (lol).


Welcome back!

I have a combo box with three options in it.

I want something different to happen when a user selects each individual option.


I.E the three options are '1 week' , '2 weeks' and '3 weeks'.

Whenever the user selects 1 week I want the program to work out the percentage change for 1 week. The same thing applies for the other two.

How do I know which of these three options has been selected when I use the 'OnChange' event?


Check the combo box' ItemIndex property.
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download