2.轉型
double x = 1234.7;
int a;
a = (int)x;
輸出:a=1234
Convert類別
Convert.ToInt32(value);
Convert.ToString(value);
Parse
int.Parse(tbxGuess.Text)
3.視窗放到最大
this.WindowState = FormWindowState.Maximized;
double x = 1234.7;
int a;
a = (int)x;
輸出:a=1234
Convert類別
Convert.ToInt32(value);
Convert.ToString(value);
Parse
int.Parse(tbxGuess.Text)
3.視窗放到最大
this.WindowState = FormWindowState.Maximized;