Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    San Francisco, CA, USA
    Posts
    184
    Thanks
    0
    Thanked 0 Times in 0 Posts

    List box Row Selection Color (Access 97)

    How do you select the back color of the selected row in a list box?
    Frank

  2. #2
    Star Lounger
    Join Date
    Dec 2001
    Location
    Fredensborg, Denmark
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: List box Row Selection Color (Access 97)

    As far as I know you can't change the backcolor for just the selected row - only for all of the listbox.

  3. #3
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    San Francisco, CA, USA
    Posts
    184
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: List box Row Selection Color (Access 97)

    Thanks Claus

  4. #4
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: List box Row Selection Color (Access 97)

    On the other hand, the selected item in a listbox is usually in inverse video, even when the focus moves to another control. What exactly were you trying to do?
    Charlotte

  5. #5
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    San Francisco, CA, USA
    Posts
    184
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: List box Row Selection Color (Access 97)

    If I'm not mistaken I remember a .mdb that had a list box and when an item was selecte the row was in light grey and I saw another list box with a yellow row, they both I think had white backgrounds. forgot how that was done.

  6. #6
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: List box Row Selection Color (Access 97)

    I've even done this myself in bygone days. It is accomplished by setting the forecolor and backcolor properties of the listbox to a pair of negative numbers that I can't find right now. Over the years, I've come to the conclusion that I don't like the trick so I've lost track of how to do it. It can have very unexpected consequences on a machine with a custom color scheme so I would recommend against it.
    Charlotte

Posting Permissions

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