static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FormLogin fl = new FormLogin(); fl.Show(); Application.Run(); }
//Show Login credentials private void ShowLoginInfo(MetroFramework.Controls.MetroTextBox txtUserId, MetroFramework.Controls.MetroTextBox txtPassword) { txtUserId.Text = this.UserId; MessageBox.Show(@"Your Login credentials: " + "\n\n" + "Username: "******"\n" + "Password: " + txtPassword.Text); //Take back to login page this.Visible = false; FormLogin fl = new FormLogin(this.UserId); fl.Visible = true; }
private void BtnOk_Click(object sender, EventArgs e) { this.Visible = false; FormLogin fl = new FormLogin(); fl.Visible = true; }