html5-img
1 / 2

textBox1, …, textBox3

A  B. textBox1, …, textBox3. textBox4, …, textBox8. 雙按 (button1) ,並加入以下程式碼:. 文字轉數字. private void button1_Click (object sender, EventArgs e) { int a, b, c; textBox4.Text = textBox1.Text; textBox5.Text = textBox2.Text;

thuong
Download Presentation

textBox1, …, textBox3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. AB textBox1, …, textBox3 textBox4, …, textBox8 Visual C# 2008

  2. 雙按 (button1),並加入以下程式碼: 文字轉數字 private void button1_Click(object sender, EventArgs e) { int a, b, c; textBox4.Text = textBox1.Text; textBox5.Text = textBox2.Text; a = int.Parse(textBox1.Text); b = int.Parse(textBox2.Text); c = a * b; textBox3.Text = c.ToString(); textBox8.Text = textBox3.Text; c = a * (b/10)*10; textBox6.Text = c.ToString(); c = a * (b%10); textBox7.Text = c.ToString(); } 數字轉文字 Visual C# 2008

More Related