CJ

CJ

  • NA
  • 42
  • 0

Exit An Event

Nov 22 2005 10:57 AM
This should be simple.  How do I exit an event and return to form if a condition is met?

For example:

private void button3_Click(object sender, System.EventArgs e)

{
if (selectedIndex.ToString().Equals("-1"))

MessageBox.Show("Please select database to pull from.");

PUT EXIT CODE HERE!!!!!!!
}

Thanks,
cj


Answers (1)