|
-
Aug 3rd, 2012, 12:45 PM
#1
Thread Starter
New Member
Checked List Boxes
A few things here. I am completely new to Visual Basic, in fact I am completely new to the wonderful world of programming(and forums for that matter).
Question one, this may seem dumb, but I am using Visual Basic on Visual Studio 2010 Professional; does that mean I am using Visual Basic.Net?
Question two:
I am playing with Checked List boxed in Windows forms for a gas price comparison project(assigned in my Intro to Problem Solving in Programming class that has not gone over half of the things I am playing with in this project).
I have created a checked list box, named it chkLstDiscounts (is that the correct conventional prefix?), and I entered the components Discount 1, Discount 2, and Discount 3.
In my code I am attempting to use each individual component as follows:
If (Discount 1 is checked) then
perform discount
EndIf
If (Discount 2 is checked) then
perform discount
EndIf
If (Discount 3 is checked) then
perform discount
EndIf
My question is what do I put in my if statement where I say "Discount X is checked".
So far I have found out that "chkLstDiscounts.CheckOnClick" will perform my calculations if ANY of the components are checked.
I have a button that will need to make these components checked or unchecked, how do I perform this.
Thanks for any and all advice.
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
|