private void bLogin_Click(object sender, EventArgs e)
        {
            TextWriter tW = new StreamWriter("settings.ini");
            tW.WriteLine(txtNama.Text);
            tW.WriteLine(txtPort.Text);
            tW.WriteLine(txtUser.Text);
            tW.WriteLine(txtPass.Text);
            tW.Close();

            fLogin login = new fLogin();
            login.StartPosition = FormStartPosition.CenterScreen;
            login.ShowDialog();
            login.Show();

            this.Close();
        }
Exemple #2
0
 private void showLogin()
 {
     fLogin login = new fLogin();
     login.StartPosition = FormStartPosition.CenterScreen;
     login.TopMost = true;
     login.ShowDialog();
 }