现在的位置: 首页 > 综合 > 正文

登陆的两种写法

2012年11月22日 ⁄ 综合 ⁄ 共 345字 ⁄ 字号 评论关闭
    [STAThread]
        
static void Main() 
        
{
            Form1 f1
=new Form1();
            f1.Hide();
            Application.Run(f1);
        }


        
private void Form1_Load(object sender, System.EventArgs e)
        
{
            Form2 f2
=new Form2();
            f2.ShowDialog();
        }

二设置两个入口点,把启动窗体设置成登陆的窗体就可以了
[STAThread]
static void Main()

抱歉!评论已关闭.