12500.html
来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行
HTML
23 行
<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:sephiroth@optimasoft.com.tw">Sephiroth</a> on April 30, 1999 at 10:04:58:<p>
In Reply to: <a href="12486.html">更改ListBox 被选取时的背景颜色?</a> posted by jeff on April 29, 1999 at 21:55:11:<p>
程式码应该像这样, 但是我觉得 GotFocus 这一段的程式<br>应该去掉比较好.<p>Private Sub List1_GotFocus()<p> List1.Selected(0) = True<p>End Sub<p>Private Sub List1_LostFocus()<br> <br> If List1.ListIndex >= 0 Then<br> List1.Selected(List1.ListIndex) = False<br> End If<br> <br>End Sub<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 12500-->
</ul><!--end: 12500-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?