I have a list box looking up names in my database. I would like to have the cursor identifying the active line to be positioned in the middle of the list box and not at the bottom. Any suggestions?
Dim somevalue As Variant<br>
List21.SetFocus<br>
somevalue = 4<br>
List21.Selected(somevalue) = True<br>
<br>
Thats how you select something its up to you to figure out what.<br>
<br>
Or as your example stated in the "middle"<br>
<br>
Dim middle As Integer<br>
List21.SetFocus<br>
middle= List21.ListCount \ 2<br>
List21.Selected(middle) = True <p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.