how to set focus on a item in a list box?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
how can I set focus on list box, but the focus should be set on, for examle, first item in list box

Than

alekm
 
-----Original Message-----
Hi,
how can I set focus on list box, but the focus should be
set on, for examle, first item in list box.
Thanx

alekm
.
you can use VB function ex: listbox.setfocus.

as for the first value, right click, go to properties and
look for the field "Default Value" type in taht box with
qoutes " type here" to what you want to appear as the
default value!

later
 
You can use code (form_Open/Current)

Me.ListBox1.Value=Me.ListBox1.ItemData(0)

HTH

Pieter


alekm said:
Hi,
how can I set focus on list box, but the focus should be set on, for
examle, first item in list box.
 
Back
Top