I have 2 forms. One is a log in screen and another is a main menu. I need to retrieve the data from the textbox in the login screen to the textbox in the main menu.
I have sourced around the internet and have implemented this code into where the main menu loads
TextBox1.Text = FrmLogIn.TxtUserName.Text This code works however everytime I log out and log back in again, the textbox which is meant to be retrieving the code from the login screen, remains empty!! ...........
I have a clearfields() function located in logout button to empty the textbox....if that helps
Do any of you guys have an idea where Im going wrong??
Thanks in advanced :)