I have the following code :
This call the second form
private void updateToolStripMenuItem_Click(object sender, EventArgs e) { Up
You should probably do whatever check you're performing before you choose to open the form in the first place.
So something like:
if(funct() == "1") { var form = new Form(); form.ShowDialog(); }