?? 5382.html
字號:
<html>
<head>
<title>Re: 如何拖曳ListBox里的選項上下移動呢?</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: 如何拖曳ListBox里的選項上下移動呢?</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:s303@ms21.hinet.net">哥堯</a> on September 08, 1998 at 09:45:44:<p>
In Reply to: <a href="5363.html">如何拖曳ListBox里的選項上下移動呢?</a> posted by Jessie on September 07, 1998 at 18:30:11:<p>
回答問題一:<br>一般區(qū)<br>Dim inddown As Integer<br>Dim mstr As String<br>Dim indup As Integer<p>Private Sub List1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)<br>inddown = List1.ListIndex '記下按下mouse時 list1.listindex<br>mstr = List1.List(inddown) '記下按下mouse時 list1.list<br>End Sub<p>Private Sub List1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)<br>indup = List1.ListIndex '記下放開mouse時 list1.listindex<br>If indup <> -1 Then '若在無資料處放開mouse則不作以下動作(會bug)<br> List1.RemoveItem inddown '把MouseDown時記下的list1.list 移除<br> List1.AddItem mstr, indup '把MouseDown時記下的list1.list 加至MouseUp處<br>End If<br>End Sub<p>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 5382-->
</ul><!--end: 5382-->
<br><hr size=7 width=75%><p>
</body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -