13912.html
来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行
HTML
23 行
<html>
<head>
<title>Re: 程式码来了</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: 程式码来了</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by ㄚ雄 on June 06, 1999 at 21:33:25:<p>
In Reply to: <a href="13903.html">一个大问题</a> posted by 北极熊 on June 06, 1999 at 19:56:36:<p>
Option Explicit<br>Public Cx As Integer<br>Public Cy As Integer<br>Public X_flag As Boolean<br>Public Y_flag As Boolean<br>Public Q As Integer<br>Private Sub Form_Load()<br> Cx = Form1.Width<br> Cy = Form1.Height<br> X_flag = False<br> Y_flag = False<br> Q = 100 '解析度__可视需要调整<br>End Sub<br>Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)<br> If X >= (Cx - Q) Then<br> X_flag = True<br> Else<br> X_flag = False<br> End If<br> If Y >= (Cy - Q) Then<br> Y_flag = True<br> Else<br> Y_flag = False<br> End If<br>End Sub<br>Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)<br> If X >= (Cx - Q) Then<br> MousePointer = 9 '东-西向<br> Else<br> MousePointer = 0<br> End If<br> If Y >= (Cy - Q) Then<br> MousePointer = 7 '北-南向<br> Else<br> If X < (Cx - Q) Then<br> MousePointer = 0<br> End If<br> End If<br> If X_flag And X > Q Then<br> Form1.Width = X<br> Cx = X<br> End If<br> If Y_flag And Y > Q Then<br> Form1.Height = Y<br> Cy = Y<br> End If<br>End Sub<br>Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)<br> X_flag = False<br> Y_flag = False<br>End Sub<br>由表单属性直接控制我无法做到,但程式码控制的话<br>可以用上面的方式<p>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 13912-->
</ul><!--end: 13912-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?