1
Reply

Exit An Event

CJ

CJ

Nov 22 2005 10:57 AM
2k
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)