T
The One
Have created a form to pop up with 2 option I then wish to write the text that
is in the option button chose back to the original form using the code below but
it gives me an exception error so could any please help me.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim frm As Form1
Dim text As String
If RadioButton1.Checked = True Then
text = RadioButton1.Text
frm.lblName4.Text = text
frm.lblSkill4.Text = "50%"
ElseIf RadioButton2.Checked = True Then
text = RadioButton2.Text
frm.lblName4.Text = text
frm.lblSkill4.Text = "40%"
End If
Close()
End Sub
thanks in advance.
is in the option button chose back to the original form using the code below but
it gives me an exception error so could any please help me.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim frm As Form1
Dim text As String
If RadioButton1.Checked = True Then
text = RadioButton1.Text
frm.lblName4.Text = text
frm.lblSkill4.Text = "50%"
ElseIf RadioButton2.Checked = True Then
text = RadioButton2.Text
frm.lblName4.Text = text
frm.lblSkill4.Text = "40%"
End If
Close()
End Sub
thanks in advance.