Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005
    Posts
    113

    Unanswered: Set focus in a list box

    Hello,
    I have a list box that shows the pathway to images. The user can add images to the list box. The image is shown in a picture box, but I don't know how you move the focus of the list box to the latest added image.

    Thanks!

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    The "Selected" property will prove useful in this scenario (it can be read OR written), particularly when coupled with the ListCount property...
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  3. #3
    Join Date
    Nov 2005
    Posts
    113
    Thanks Teddy. It's working fine now!

    Code:
    Me.Listbox.Selected(Me.Listbox.ListCount - 1) = True
    Have a nice time
    Julita

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •