Suppose the size listbox has Small, Medium, and Large
Suppose the color listbox has White, Blue, White & Blue
Then write:
dim total as Double
//check if its small and white
If lstBoxSize.SelectedIndex = 0 And lstBoxColor.SelectedIndex = 0 then
total = total + 5.99
End if
//check if its small and blue
If lstBoxSize.SelectedIndex = 0 And lstBoxColor.SelectedIndex = 1 then
total = total + 6.99
End if
//check if its small and white&blue
If lstBoxSize.SelectedIndex = 0 And lstBoxColor.SelectedIndex = 2 then
total = total + 7.99
End if
//check if its medium and white
If lstBoxSize.SelectedIndex = 1 And lstBoxColor.SelectedIndex = 0 then
total = total + 6.99
End if
//and so on...
//check if logo is selected and set total to 3 if it is selected
For more programming help, visit
www.NeedProgrammingHelp.com or email me at
NeedProgrammingHelp@hotmail.com
Alex.