vb勁既人請入....我寫左一句野但佢話我錯同唔work...勁急...20分

2007-10-09 1:58 am
我用mouse_enter黎令picturebox1幅圖變大..幅圖本身係(79, 79)..我想將佢變到(111, 111)
所以我寫左句:::PictureBox1.Size = newsize(111, 111)
佢就話我錯....我岩岩先學vb...所以唔多明

回答 (1)

2007-10-09 1:01 pm
✔ 最佳答案
New Size(width, height)

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
End Sub

Private Sub PictureBox1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseHover
PictureBox1.Size = New Size(120, 120)
End Sub

Private Sub PictureBox1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseLeave
PictureBox1.Size = New Size(79, 79)
End Sub


收錄日期: 2021-04-26 13:13:17
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20071008000051KK02429

檢視 Wayback Machine 備份