Cancel form load

后端 未结 6 1347
猫巷女王i
猫巷女王i 2021-01-14 01:15

I have the following code :

This call the second form

private void updateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Up         


        
6条回答
  •  无人共我
    2021-01-14 01:57

    Maybe hide it first, then only show it if funct() == "1":

    private void Form_Load(object sender, EventArgs e)
    {
        this.Close();
    
        if (funct() == "1")
            MessageBox.Show("Something");
    }
    

提交回复
热议问题