解决方案 »

  1.   

    代码太少,看不出来。是C#的可能性大。看不到VB.NET特有的特征。
      

  2.   


     [STAThread]
        public static void Main(string[] args)
        {
          string languageHandle = string.Empty;
          string[] strArray = args;
          int index = 0;
          if (index < strArray.Length)
            languageHandle = strArray[index];
          Application.EnableVisualStyles();
          if (new frmLogin(languageHandle).ShowDialog() != DialogResult.OK)
            return;
          try
          {
            MainFrame mainFrame = new MainFrame();
            GlobalInfo.set_Frame((Form) mainFrame);
            Application.Run((Form) mainFrame);
          }
          catch (Exception ex)
          {
            Splasher.Close();
            MsgHelper.ShowError(ex.Message);
          }
        }    private void toolStripLabel_ServiceTime_DoubleClick(object sender, EventArgs e)
        {
          this.GetServerTime();
        }    private void toolStripButton_CloseOtherForm_Click(object sender, EventArgs e)
        {
          foreach (Form form in this.MdiChildren)
          {
            if (form != this.ActiveMdiChild)
              form.Close();
          }
        }