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
Post a Comment