📄 6943.html
字号:
<html>
<head>
<title>为何不能画一条直线?</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>为何不能画一条直线?</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:moce@ms2.url.com.tw">chris</a> on October 31, 1998 at 12:18:23:<p>
请问为何在PictureBox画不出一条直线,而是不断的画直线?<p>Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)<br>If Button = 1 Then<br> sngoldX = X<br> sngoldY = Y<br>End If<br>End Sub<p>Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)<br>If Button = 1 Then<br> Picture1.Line (sngoldX, sngoldY)-(CurrentX, CurrentY), RGB(255, 255, 255)<br> Picture1.Line (sngoldX, sngoldY)-(X, Y), RGB(0, 0, 0)<br>End If<br>End Sub<br>那有问题?
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 6943-->
<!--top: 7132--><li><a href="7132.html">Re: 为何不能画一条直线?</a> <b>Honey</b> <i>23:14:58 11/05/98</i>
(<!--responses: 7132-->0)
<ul><!--insert: 7132-->
</ul><!--end: 7132-->
</ul><!--end: 6943-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -