"Rulin Hong" <Ru*******@discussions.microsoft.com> schrieb:
Supposed I have 100 items or datarows to bind listBox control. and the
control can only display 10 rows. So I need to tell the scope of the
visible
rows.
\\\
MsgBox( _
"Top index: " & _
CStr(Me.ListBox1.TopIndex) _
)
MsgBox( _
"Number of max. fully visible items: " & _
CStr( _
Me.ListBox1.ClientSize.Height \ _
Me.ListBox1.ItemHeight _
) _
)
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>