By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,264 Members | 1,056 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,264 IT Pros & Developers. It's quick & easy.

Please Help With This Listbox/Combo Box Problem in VB!

P: 1
Hey everyone.
I'm trying to create a small program with Visual Basic to determine the prices of tickets at a baseball game depending on where the seats are.
I'm using a listbox/combo box to display the different places of sitting (such as Home plate - upper deck,home plate -lower deck, etc etc.)
I am having a hard time figuring out how I can make it where once the person selects their seating category, It will determine which price the number of tickets should be multiplied by.

Home Plate - lower deck
Adult Charge - 12.00
child Charge - 7.00
Senior Charge - 10.00

Home Plate- upper deck
Adult charge - 9.00
Child Charge - 5.00
Senior charge - 8.00

etc etc.

Once I get it started, I think I'll be able to figure it out.
Any help would be great.
Thanks much!
Apr 12 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 8,434
You might store the price in the ItemData property for each entry in the combobox (suitably converted since ItemData is of Long data type).
Apr 12 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.