:mad: I am creating an application with 6 forms and trying to send variables from one form to another. The system crashes inside the generated code at MyBase New() line. Help me please!
Paul
Dear paul,
You must use "form'sname.var iable's name" to assignment.
In addition you shoud definition your variable's between "bublic class form1 and end class.
for example I have 2 forms and I want use for variable in form2.vb that defined in form1.vb.
Public Class Form1
Public X As String = "paul"
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
Form2.Show()
End Sub
End Class
Public Class Form2
"And I have a textbox in form2.vb"
Private Sub Form2_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
TextBox1.Text = Form1.X <----"form'sname.var iable's name"
End Sub
End Class
Comment