分辨率可以用 x = Screen.Width / Screen.TwipsPerPixelX y = Screen.Height / Screen.TwipsPerPixelY 得到
Option ExplicitPrivate Sub Command1_Click() Dim i As Long Me.Move Screen.Width - Me.Width, Screen.Height While i < Me.Height + 500 DoEvents i = i + 10 Me.Move Screen.Width - Me.Width, Screen.Height - i Wend End Sub
'form1 Private Sub Command1_Click() Form2.Left = Screen.Width - Form2.Width Form2.Top = Screen.Height Form2.Show End Sub'form2 Private Sub Form_Load() Timer1.Interval = 1 End SubPrivate Sub Timer1_Timer() If Me.Top < Screen.Height - Me.Height Then Timer1.Enabled = False Else Me.Top = Me.Top - 30 End If End Sub
form.top=screen.height-form.height?
form.top=screen.height-form.height?
http://www.5ivb.net
上有的,你找找看
x = Screen.Width / Screen.TwipsPerPixelX
y = Screen.Height / Screen.TwipsPerPixelY
得到
Dim i As Long
Me.Move Screen.Width - Me.Width, Screen.Height
While i < Me.Height + 500
DoEvents
i = i + 10
Me.Move Screen.Width - Me.Width, Screen.Height - i
Wend
End Sub
Private Sub Command1_Click()
Form2.Left = Screen.Width - Form2.Width
Form2.Top = Screen.Height
Form2.Show
End Sub'form2
Private Sub Form_Load()
Timer1.Interval = 1
End SubPrivate Sub Timer1_Timer()
If Me.Top < Screen.Height - Me.Height Then
Timer1.Enabled = False
Else
Me.Top = Me.Top - 30
End If
End Sub