Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Seeing the full line in a text box 1

Status
Not open for further replies.

BoxHead

Technical User
May 6, 2001
876
US
I had posted this in the Forms Forum without reply, so I thought I'd try here to see if any one has any ideas.

In Microsoft Explorer, if a folder name doesn't fit in the window, you can mouse-over the folder name and a label appears showing the full name.

Is there a way to do this with a list box on a form?

I've gotten it to work on the mouse move with the control tip text by dividing the height of the listbox by the listcount, but it's slow and it doesn't work when there are more than 12 records and a scrollbar.

Any ideas?


TIA
John

Use what you have,
Learn what you can,
Create what you need.
 
You can call message box, which shows value of partly showed column by mouse right button clicking;

Private Sub lstReportList_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
MsgBox Me.lstReportList.Column(1)
End If
End Sub


It works good and fast.

Aivars
 
use the MouseMove Event and the ControlTipText Property
This example if for a TextBox named PerformedAt


Private Sub PerformedAt_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.PerformedAt.ControlTipText = Me.PerformedAt
End Sub

PaulF
 
Thanks for the thoughts. I was hoping to have it appear the way it does in Windows Explorer, but I'm coming to grips with the reality that that may not be doable from Access.

Thanks again. I'll try both ideas.

John

Use what you have,
Learn what you can,
Create what you need.
 
If you use Treeview control, what you are looking IS the default behavior. Assuming Treeview fits your needs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top