Cursor-sensitive control tiptext in listbox ?

M

mscertified

Is it possible to display different ControlTipText depending on which row in
a listbox is selected?
 
S

Stuart McCall

mscertified said:
Is it possible to display different ControlTipText depending on which row
in
a listbox is selected?

Create a listbox called List0. Make sure it shows some data. Set its OnClick
event to:

Private Sub List0_Click()
With Me.List0
.ControlTipText = .value & " Tip Text"
End With
End Sub

The click event for a listbox fires when the user selects with either the
mouse or keyboard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top