hi guys havent been here for a while , im a fairly competent vb.net programer but have a problem think im just missing something ,im working on a fairly big project but im gonna keep this question small and simple .
if i have 2 forms amd one module the module contains a public var user1 = string
my first form has text box and button 2nd form a label and button
now
i enter text into text box press button form 1 closes form2 opens and label displays var contents i press button on form 2 form closes form 1 opens enter new text repeat the procudure and the label on form 2 still contains the information from the first time i ran the prog and wont change , its as if the var is locked? any ideads before i get more depressed.
thank you
stephen
form1 code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
user1 = TextBox1.Text
Form2.Show()
End Sub
form2 code
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Label1.Text = user1
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Hide()
End Sub
module
Module Module1
Public user1 As String
End Module