Example #1
0
        private void Home_Load(object sender, EventArgs e)
        {
            //close login form classChat.cs
            classChat frm1 = new classChat();

            frm1.Close();
            //load buttons for each registered course
            loadCourseButtons();
        }
Example #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //remove classChat form from Application.Run() to allow for it to close when home.cs is opened
            classChat frm1 = new classChat();

            frm1.Show();
            Application.Run();
        }