English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
所有分類

我作業的題目是

--------------------------------------------------------------------------------FORM1
O+ O- O* (3個RADIOBUTTON)

A=(TEXTBOX1)

B=(TEXTBOX2) (BUTTON1)

------------------------------------------------------------------------------------


1.點選+時 要跳出FORM2

--------------------------------------------------------------------------FORM2

A+B=(TEXTBOX1)

------------------------------------------------------------------------------------




2.點選-時 要跳出FORM3
--------------------------------------------------------------------------FORM3

A-B=(TEXTBOX1)

------------------------------------------------------------------------------------




3.點選*時 要跳出FORM4
--------------------------------------------------------------------------FORM4

A*B=(TEXTBOX1)

------------------------------------------------------------------------------------



請幫我解VB的程式!!謝謝!!

2007-01-06 11:05:08 · 1 個解答 · 發問者 Anonymous in 電腦與網際網路 程式設計

1 個解答

大綱是如此 細節自己補 (圖形部分)
Private Sub Option1_Click() ' +
Form1.Hide
Form2.show
End Sub
Private Sub Option2_Click() ' -
Form1.Hide
Form3.show
End Sub
Private Sub Option3_Click() ' *
Form1.Hide
Form4.show
End Sub
Private Sub Form2_Load()
Text1.Text = Cint(Form1.Text1.Text) + Cint(Form1.Text2.Text)
End Sub
Private Sub Form3_Load()
Text1.Text = Cint(Form1.Text1.Text) - Cint(Form1.Text2.Text)
End Sub
Private Sub Form4_Load()
Text1.Text = Cint(Form1.Text1.Text) * Cint(Form1.Text2.Text)
End Sub
如果有問題, 請來函討論. 不然, 我可能會錯失你再補充的疑點.

2007-01-07 22:36:38 · answer #1 · answered by JJ 7 · 0 0

fedest.com, questions and answers