Hiiiiiiiiii
can any one help me plz :)
i want to send date and another variables from form to another when click btn... how can i do it?????
hi
in form1 -button click event write it as
Dim frm2 As New Form2(DateTime.Now, "hai")
frm2.Show()
and in 2nd form
Private dt1 As DateTime
Private str As String
Public Sub New(ByVal dt2 As DateTime, ByVal strname As String)
InitializeComponent()
dt1 = dt2
'str = strname;
textBox1.Text = strname
End Sub
it wil work.
if its working mark as PROBLEM SOLVED
Hi There,
For your problem you can do the following::
In Form1 do::
public shared variable1 as datetime
'get the value from any event as per your program
Form2.date1=variable1
' then in the second form declare variable as
public shared date1 as datetime=Form1.variable
hope that this will help you.
Himanshu
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.