Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void parseBtn_Click(object sender, EventArgs e)
- {
- //this creates a variable that will hold the equation as a string
- string equation;
- try
- {
- equation = equationTxt.Text;
- if (equation != "")
- {
- }
- else
- {
- MessageBox.Show("Please enter a valid equation");
- }
- }
- catch
- {
- MessageBox.Show("Please enter a valid equation");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement