Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. private void parseBtn_Click(object sender, EventArgs e)
  2. {
  3. //this creates a variable that will hold the equation as a string
  4. string equation;
  5. try
  6. {
  7.  
  8. equation = equationTxt.Text;
  9. if (equation != "")
  10. {
  11.  
  12. }
  13. else
  14. {
  15. MessageBox.Show("Please enter a valid equation");
  16. }
  17.  
  18. }
  19. catch
  20. {
  21. MessageBox.Show("Please enter a valid equation");
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement