Solved

tool tip text in dbgrid

Posted on 2000-05-15
2
341 Views
Last Modified: 2008-02-01
well i have a db grid with 2 columns and i want that hen the user moves the mouse over the dbgrid the tool tip text should change according to the text in the cell

eg when the mouse is on name

xyx the tool tip text should show xyz
and if on vnv
then it chould change accordingly

thanx a lot
0
Comment
Question by:sonalchouhan
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 10 total points
Comment Utility
Add this to your form code containing the dbgrid. It changes the tooltip text to reflect the contents of the cell over which the mouse is positioned.

Private Sub DBGrid1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    On Error Resume Next
    With DBGrid1
        .ToolTipText = .Columns(.ColContaining(X)).CellValue(.RowBookmark(.RowContaining(Y)))
    End With
End Sub
0
 

Author Comment

by:sonalchouhan
Comment Utility
WELL THANKS TimCottee  I GOT MY ANS SOLVED

THANX A LOT
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now