I am going to assume from reading this, that you have created both forms and control them with .show and .hide. Try this simple solution. Reverse your show and hide on form 2 and make the assignment in-between. It appears your assignment is also reversed.
to get form2.textbox1 to form1, should be
Form1.TextBox1.Text = TextBox1.Text
Yours form2:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim newdate As String
newdate = TextBox1.Text
MessageBox.Show("Date will be applied " & newdate & ".txt")
Me.Hide()
Form1.Show()
Try: form2
<pre>Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim newdate As String
newdate = TextBox1.Text
MessageBox.Show("Date will be applied " & newdate & ".txt")
Form1.Show()
Form1.TextBox1.Text = TextBox1.Text
Me.Hide()
I agree with the comment on the issue with this. This was based on the supplied code. A better way would be to declare a public variable in a module. On the form2 closing event set the variable to the textbox value. Then on the form1 load event, set the textbox value to the variable.