Is form1 the type of the current instance? If so, change if (form1.Visible) to if (this.Visible) or simply if (Visible).
0
solved if and else for visible form [closed]
Is form1 the type of the current instance? If so, change if (form1.Visible) to if (this.Visible) or simply if (Visible).
0
solved if and else for visible form [closed]