[此贴子已经被作者于2007-2-12 12:41:14编辑过]
<DIV class=quote><B>以下是引用<u>清澂居士</u>在2007-2-12 14:34:05的发言:</B><br>Kill "找不到服务器"<BR><BR>FUNCTION:<BR> DELETE 舌頭<BR> DELETE 頭<BR> DELETE 身體<BR> FORMAT 靈魂<BR>END FUNCTION<BR></DIV><p>
Option Explicit
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Const HWND_TOPMOST& = -1
' 将窗口置于列表顶部,并位于任何最顶部窗口的前面
Private Const SWP_NOSIZE& = &H1
' 保持窗口大小
Private Const SWP_NOMOVE& = &H2
' 保持窗口位置
Private Sub Form_Load()
Form1.Height = 9000
Form1.Width = 12000
Form1.Left = 0
Form1.Top = 0
SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
' 将窗口设为总在最前
Form1.BorderStyle = 0
End Sub
试一下执行这段代码