06.08.2013 Views

03 林家民

03 林家民

03 林家民

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

題目說明:使用兩個按鈕控制物件,讓使用者按下放大鈕時,可放大輸出在表<br />

單上字串(“Basic”)的字體大小;在按鈕縮小鈕時,則縮小輸出在表<br />

單上字串的字體大小<br />

檔案名稱:<strong>03</strong> \ ch3 \ P.99<br />

表單:<br />

程式碼:<br />

Private Sub Command1_Click()<br />

Form1.FontSize = Form1.FontSize + 3<br />

Print "Basic"<br />

End Sub<br />

Private Sub Command2_Click()<br />

Form1.FontSize = Form1.FontSize - 3<br />

Print "Basic"<br />

End Sub<br />

執行結果:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!