Advertisement
gersy

Prompt User c#

Jan 19th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. DialogResult dg = MessageBox.Show("Select Direction \n Yes To convert from Fah to Cel \n No To convert From Cel To Fah","Please Select",MessageBoxButtons.YesNo);
  2.            
  3.             if (dg == DialogResult.OK) // user selected from fah to cel
  4.                 Fah_To_Cel(99);
  5.             else // user selected from cel to fah  
  6.                 Cel_To_Fah(99);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement