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

A

alekm

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
 
G

Guest

-----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
 
P

Pieter Wijnen

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.
 
Top