'determine user entered their name for the order
If String.IsNullOrEmpty(orderName.Text) Then
MessageBox.Show("Please enter your name here.", "Missing value", _
MessageBoxButtons.OK, MessageBoxIcon.Information)
orderName.Focus()
Exit Sub
End If

Select Case True
Case smallRadioButton.Checked
ordersummary = ordersummary + size
If smallRadioButton.Checked Then
ordersummary = smallsize
End If
If mediumRadioButton.Checked Then
ordersummary = mediumsize
End If
If largeRadioButton.Checked Then
ordersummary = largesize
End If
End Select
Select Case True
Case option1RadioButton.Checked
ordersummary = ordersummary + quantity
If option1RadioButton.Checked Then
ordersummary = option1
End If
If option2RadioButton.Checked Then
ordersummary = option2
End If
If option3RadioButton.Checked Then
ordersummary = option3
End If
End Select

Replies To: Radio Buttons

Re: Radio Buttons

Posted 15 June 2008 - 07:05 PM

It's kind of hard for me to figure your code, but there's something i can't figure out. Do you want the options they select to be in the textbox, or do you want them to enter their options in the textbox?

Re: Radio Buttons

Posted 15 June 2008 - 07:18 PM

jacobjordan, on 15 Jun, 2008 - 07:05 PM, said:

It's kind of hard for me to figure your code, but there's something i can't figure out. Do you want the options they select to be in the textbox, or do you want them to enter their options in the textbox?

The select the radio buttons and then type their name in the text box. Their name and options selected should appear in the ordersummary label.

Re: Radio Buttons

Re: Radio Buttons

Posted 15 June 2008 - 07:26 PM

neongabby, on 15 Jun, 2008 - 07:18 PM, said:

jacobjordan, on 15 Jun, 2008 - 07:05 PM, said:

It's kind of hard for me to figure your code, but there's something i can't figure out. Do you want the options they select to be in the textbox, or do you want them to enter their options in the textbox?

The select the radio buttons and then type their name in the text box. Their name and options selected should appear in the ordersummary label.

Thanks.

I can't get the selections to show in the text box. I've attached the instructions. I'm the world's worst at explaining (and at programming ) I don' understand the new line outlined in the instructions. It hasn't been covered in our text book yet.

Attached File(s)

Re: Radio Buttons

Posted 15 June 2008 - 07:34 PM

Quote

I'm the world's worst at explaining

Well, that's not very good because I'm the world's worst at figuring out what other people are trying to say, but let me see if i have this straight. You can't get the options the user selects to display on separate lines of the text box, is that right?

I have to leave, but if what i just said was correct, i can also solve your problem.
Put this code between each of the options:

Re: Radio Buttons

Posted 15 June 2008 - 07:34 PM

jacobjordan, on 15 Jun, 2008 - 07:29 PM, said:

Quote

I'm the world's worst at explaining

Well, that's not very good because I'm the world's worst at figuring out what other people are trying to say, but let me see if i have this straight. You can't get the options the user selects to display on separate lines of the text box, is that right?

Yes, that's right. It doesn't look like the options are displaying other than the person's name. I know my code is messed up somewhere. Hopefully the attachment I included last time helped a little. Thanks agian.

Re: Radio Buttons

Posted 15 June 2008 - 08:15 PM

neongabby, on 15 Jun, 2008 - 07:34 PM, said:

jacobjordan, on 15 Jun, 2008 - 07:29 PM, said:

Quote

I'm the world's worst at explaining

Well, that's not very good because I'm the world's worst at figuring out what other people are trying to say, but let me see if i have this straight. You can't get the options the user selects to display on separate lines of the text box, is that right?

Yes, that's right. It doesn't look like the options are displaying other than the person's name. I know my code is messed up somewhere. Hopefully the attachment I included last time helped a little. Thanks agian.

jacobjordan had to leave, so if anyone else can help, I would appreciate it. The code he gave me worked for the newline, but I'm still playing around with trying to get the user's options to appear in the order summary label box.

Re: Radio Buttons

Posted 15 June 2008 - 08:45 PM

Well, i looked at the doc in the attachment, and it looks simple. If all your having trouble with is making the users choices appear in the label, then i don't really know what your problem is. However, here is some code that will show the options in the label (label name = mylabel)

I assume your using vb.net 2005, since that's what it said in the doc, so also make sure that on the label properties, that the 'AutoSize' property is set to false. If that still doesn't solve your problem (or if i'm just way off) let me know.