switch
Statement
For multiple conditional statements, it is better to use switch statement.
The data type specified in expression must match that of case values.
The following example includes the tools: |
|
|
Application.Exit
statement terminates execution immediately.
private void Stop_Click( object sender, EventArgs e ) { Application.Exit( ); } |