QUOTE(jayman9 @ 13 Mar, 2007 - 02:32 PM)

You can do that by using the Checked Property to determine which radiobutton is selected.
To give you an idea of what I mean:
CODE
If radiobutton1.Checked Then
'add title to listbox
Else If radiobutton2.Checked Then
'add title2 to listbox
Else If radiobutton3.Checked Then
'add title3 to listbox
End If
I have that done for prices to go to the label based on number of tickets wanted but still am stuck on stupid on how to place the prices and movie names in the listbox here is my code for the radio buttons and label
Private Sub radOne_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radOne.CheckedChanged, radTwo.CheckedChanged, _
radThree.CheckedChanged, _
radFour.CheckedChanged, _
radFive.CheckedChanged, _
radSix.CheckedChanged
decSubtotal = Reg_Price * City_Tax
decTotal = decSubTotal + Reg_Price
decSubDisTotal = Discount_Price * City_Tax
decDisTotal = decSubDisTotal + Discount_Price
If (radOne.Checked) Then
lblCalculate.Text = decTotal.ToString("c")
ElseIf (chkDiscount.Checked) Then
lblCalculate.Text = decDisTotal.ToString("c")
End If
If (radTwo.Checked) Then
lblCalculate.Text = (decTotal * 2).ToString("c")
ElseIf (chkDiscount.Checked) Then
lblCalculate.Text = (decDisTotal * 2).ToString("c")
End If
If (radThree.Checked) Then
lblCalculate.Text = (decTotal * 3).ToString("c")
ElseIf (chkDiscount.Checked) Then
lblCalculate.Text = (decDisTotal * 3).ToString("c")
End If
If (radFour.Checked) Then
lblCalculate.Text = (decTotal * 4).ToString("c")
ElseIf (chkDiscount.Checked) Then
lblCalculate.Text = (decDisTotal * 4).ToString("c")
End If
If (radFive.Checked) Then
lblCalculate.Text = (decTotal * 5).ToString("c")
ElseIf (chkDiscount.Checked) Then
lblCalculate.Text = (decDisTotal * 5).ToString("c")
End If
If (radSix.Checked) Then
lblCalculate.Text = (decTotal * 6).ToString("c")
ElseIf (chkDiscount.Checked) Then
lblCalculate.Text = (decDisTotal * 6).ToString("c")
End If
I have declared global constants so they will function in all my controls
I am really so confused right now and its probably something very easily done but can't untwist it