Hello,
I have a class (Class.vb) that has a variable dimmed (newOption) as a String.
I've created a Form with 3 radio button options and OK/Cancel buttons.
The form code has Subs for each option as follows:
Friend Class dialogArraySelection
Public Event notifycomplete()
Public bgaSelection As String
Public Sub radFullArray_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radFullArray.CheckedChanged
newOption = "Full"
End Sub
Public Sub radFullNoCorners_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radFullNoCorners.CheckedChanged
newOption = "Partial"
End Sub
Public Sub radDwgInput_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radDwgInput.CheckedChanged
newOption = "DWG"
End Sub
Public Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
Me.DialogResult = System.Windows.Forms.DialogResult.OK
RaiseEvent notifycomplete()
Me.Close()
End Sub
The Class code calls the dialog box:
newOption = ""
Dim diaOption As New dialogArraySelection
diaOption.ShowDialog()
How do I get the value of newOption from the form code into the class code? I've looked all over for an answer, so thanks in advance for any help.
Thanks,
Mark