Are there property settings for the forecolor and font color of the selected item in a list box ?
Are there property settings for the forecolor and font color of the selected item in a list box ?
No. Row is highlighted when selected. The text color of selected row is the inverse of the ForeColor property. Don't understand what you want.
Google: access listbox color rows
Review:
http://www.access-programmers.co.uk/...d.php?t=226478
http://blogs.office.com/b/microsoft-...ist-boxes.aspx
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
You can do this kind of thing with Conditional Formatting with a Combobox, but not with a ListBox. If that alternative would work for you, in Form Design View:
- Select the Combobox then go to Conditional Formatting and use
- Expression Is
- Not IsNull([YourComboBoxName])
- Select the color formatting you want
- Click on OK
If you want the formatting to show immediately, instead of showing in reverse, as June7 explained it would, when a selection is made, you'd need to immediately move Focus elsewhere:
Code:Private Sub YourComboBoxName_AfterUpdate() Me.AnyOtherControl.SetFocus End Sub
Linq ;0)>