switch (sDayName.ToUpper () ) { case"1": MessageBox.Show("One"); case "2": MessageBox.Show("Two"); }
A break or goto statement should solve the problem
switch (sDayName.ToUpper () ) { case"1": MessageBox.Show("One"); break; case "2": MessageBox.Show("Two"); goto default; ...
No comments:
Post a Comment