⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 7171.html

📁 VB技巧问答10000例 VB技巧问答10000例
💻 HTML
字号:
<html>
  <head>
    <title>Re: 如何按住 Text Box or Label 移动表单</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: 如何按住 Text Box or Label 移动表单</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:honey0@tcts1.seed.net.tw">Honey</a> on November 06, 1998 at 23:37:52:<p>
In Reply to: <a href="7147.html">如何按住 Text Box or Label 移动表单</a> posted by 请教者 on November 06, 1998 at 10:12:48:<p>
我是用以下的方式<br>API宣告 若在模组宣告得去掉Private<p>Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long<br>Private Declare Sub ReleaseCapture Lib "user32" ()<br>Const WM_NCLBUTTONDOWN = &HA1<br>Const HTCAPTION = 2<p>之后在Label1 or text1 的MouseMove事件输入以下<p>Dim Lngk As Long<br>If Button = 1 Then<br>ReleaseCapture<br>LngK = SendMessage(Me.hwnd,WM_NCLBUTTONDOWN,HTCAPTION, 0&)<br>End If
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 7171-->
</ul><!--end: 7171-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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