如果你所说的状态栏 是指WIN的任务栏的话,请用以下办法解决. 1.form的BorderStyle=2、4或5 2. 使用API获得任务栏的高度,之后将Screen.Height-任务栏高度就可以了。 Public Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
1.form的BorderStyle=2、4或5
2. 使用API获得任务栏的高度,之后将Screen.Height-任务栏高度就可以了。
Public Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long