How do I exit from a function?
Posted
by every_answer_gets_a_point
on Stack Overflow
See other posts from Stack Overflow
or by every_answer_gets_a_point
Published on 2010-04-12T20:44:51Z
Indexed on
2010/04/12
21:03 UTC
Read the original article
Hit count: 391
i know that in vb.net you can just do Exit Sub
but i would like to know how do i exit a click event in a button?
here's my code:
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "" || textBox3.Text == "")
{
//exit this event
}
}
© Stack Overflow or respective owner