9973.html

来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 27 行

HTML
27
字号
<html>
  <head>
    <title>Re: 请问如何用 VB 写一个 Full screen 的 form ?</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: 请问如何用 VB 写一个 Full screen 的 form ?</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:cww5@mail.ncku.edu.tw">cww</a> on February 09, 1999 at 11:41:01:<p>
In Reply to: <a href="9964.html">Re: 请问如何用 VB 写一个 Full screen 的 form ?</a> posted by David Wong on February 09, 1999 at 08:54:54:<p>
若是我,我会在Design time 设定Form.Moveable = False<br>而后Form_Load时设定form的大小为萤幕的大小,并且左上<br>角在(0,0)的位置,最后设定它成TopMost的Form,如此<br>可盖住TaskBar,而需要时,TaskBar可再Show出(按Ctrl-Esc)<br>,而Form只要再Setfocus便会再度盖掉TaskBar<p><br> Const FLAG = SWP_NOMOVE Or SWP_NOSIZE<br> Const HWND_TOPMOST = -1<br> Const HWND_NOTOPMOST = -2<br> Const HWND_TOP = 0<br> Const HWND_BOTTOM = 1<br> Private Declare Function SetWindowPos Lib "user32" _<br>   (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, _<br>    ByVal y As Long, ByVal cx As Long, ByVal cy As Long, _<br>    ByVal wFlags As Long) As Long<br> Private Sub Form_Load()<br> Me.Move 0, 0, Screen.Width, Screen.Height<br> Call SetWindowPos(Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAG)<br> End Sub<p> Private Sub Command2_Click()<br> Call SetWindowPos(Me.hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, FLAG)<br> End Sub<p><p>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 9973-->
<!--top: 10175--><li><a href="10175.html">Re: 请问如何用 VB 写一个 Full screen 的 form ?</a> <b>David Wong</b> <i>09:31:55 2/19/99</i>
(<!--responses: 10175-->0)
<ul><!--insert: 10175-->
</ul><!--end: 10175-->
</ul><!--end: 9973-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?