コード例 #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     //Application.Run(new Form1());
     Application.Run(LoginWinform.getForm());
 }
コード例 #2
0
 private static void SetTextOfLogin(string text)
 {
     try
     {
         if (LoginWinform.getForm().pingLbl.InvokeRequired)
         {
             SetLblTextCallback d = new SetLblTextCallback(SetTextOfLogin);
             LoginWinform.getForm().pingLbl.Invoke(d, new object[] { text });
         }
         else
         {
             LoginWinform.getForm().pingLbl.Text = text;
         }
     }
     catch (Exception ex)
     {
     }
 }
コード例 #3
0
 private void btnExit_Click(object sender, EventArgs e)
 {
     this.Hide();
     LoginWinform.getForm().Show();
 }