private void FormChatManager_Load(object sender, EventArgs e) { this.Visible = false; FormLoginSignup FormLogin = new FormLoginSignup(); FormLogin.ShowDialog(); }
private void FormChatManager_Load(object sender, EventArgs e) { this.Visible = false; // Try catch block for Server connection try { sctctrl = new SocketController(this); } catch (Exception exc) { MessageBox.Show(exc.Message); Application.Exit(); } // creates and displays the login form FormLoginSignup FormLogin = new FormLoginSignup(sctctrl); FormLogin.ShowDialog(); sctctrl.SendChatroomsRequest(); sctctrl.SendFriendslistRequest(); }