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