private void sendWindowToolStripMenuItem_Click(object sender, EventArgs e) { if (frmSend.instantiations == 0) { fSend = new frmSend(); // creates a new frmSend fSend.Show(); } }
private void sendWindwoToolStripMenuItem_Click(object sender, EventArgs e) { if (frmSend.instantiations == 0) { fSend = new frmSend(); //Creates a new window fSend.Show(); } //add code to have a popup }
private void sendWindowToolStripMenuItem_Click(object sender, EventArgs e) { if (frmSend.Instantiations >= 1) { MessageBox.Show("Maximum Send Windows have been reached"); } else { fsend = new frmSend(); fsend.Show(); } }