"Print"的问题
问个很菜的问题,现在有一个窗体,我把窗体的BorderStyle属性设置为0-None,WindowState属性设置为2-Maximized(最大化),现在我想在窗体中心部位Print "放学时间到,关机中......"该怎么设置其属性?
教程都有讲到.
Dim l As Long, t As Long
Dim s As String
s = "放学时间到,关机中......"
l = (Me.ScaleWidth - TextWidth(s)) / 2
t = (Me.ScaleHeight - TextHeight(s)) / 2
Me.CurrentX = l
Me.CurrentY = t
Me.Print s