类似的道理Option ExplicitPrivate Sub Form_Load() Image1.Picture = LoadPicture("c:\test.bmp") End SubPrivate Sub Image1_DblClick() Static i As Boolean i = Not i Image1.Stretch = True If i Then Form1.WindowState = 2 Image1.Width = Screen.Width - 20 Image1.Height = Screen.Height - 20 Else Form1.WindowState = 0 Form1.Width = 5000 Form1.Height = 2000 Image1.Width = 5000 Image1.Height = 2000
Image1.Picture = LoadPicture("c:\test.bmp")
End SubPrivate Sub Image1_DblClick()
Static i As Boolean
i = Not i
Image1.Stretch = True
If i Then
Form1.WindowState = 2
Image1.Width = Screen.Width - 20
Image1.Height = Screen.Height - 20
Else
Form1.WindowState = 0
Form1.Width = 5000
Form1.Height = 2000
Image1.Width = 5000
Image1.Height = 2000
End If
End Sub