Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
private void button1_Click(object sender, System.EventArgs e)
{
//if your validation function returns true to indicate its valid data. Call the next function in your program.
//else validation returns false so run some other logic
}
if errorthrown then stopevent
try
{
// function that throws an exception goes here
}
catch ( Exception ex )
{
MessageBox.Show(this, ex.Message);
return;
}
//more code goes here: not reached if error thrown