|
-
Oct 16th, 2004, 02:44 PM
#1
Thread Starter
New Member
Help!!
okay here is the situation:
I have a forum with 3 radio buttons,
2 text fields and a button. I want to enter a number in the first text field and if the first radio button is checked is will mutiply by 5 if the second is check subbstact by five and if the third is checked add 5 and write it in the second text field. now here is where it gets tricky, if the valu in the first text field is below 10 i want it to say 15 in the second text field no matter what.
thanks in advance
-
Oct 16th, 2004, 02:54 PM
#2
In the button click event, check the value in the first textbox. If it is NOT less than 10, then process it.
VB Code:
'pseudocode
If NOT TextBox1.Text.ToIntegerOrToShortOrWhatever < 10 Then
'check for which radio button is selected, do processing
Else
TextBox2.Text = 15
End If
-
Oct 16th, 2004, 05:34 PM
#3
Thread Starter
New Member
'pseudocode
If NOT TextBox1.Text.ToIntegerOrToShortOrWhatever < 10 Then
'check for which radio button is selected, do processing
Else
TextBox2.Text = 15
End If
what would I write to replace the texte in bold if the radio button's name is B
-
Oct 17th, 2004, 12:22 AM
#4
Surely you know a little VB.NET? I'm not going to give you all the code.
VB Code:
If Me.B.Checked = True Then
'now do the maths.
End If
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
|