c# - Checking Variable before allowing click -



c# - Checking Variable before allowing click -

how have check variable before allowing click.

example :

_startcontrol.click += new eventhandler(startcontrol_click);

i want them able if variable "isvalid" equal 1.

i'm not @ forms.. have learned console apps.

you can check value of isvalid field within startcontrol_click method. if value 1, can allow method proceed, if it's not 1, can homecoming method before gets executed.

c#

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -