Solved

tool tip text in dbgrid

Posted on 2000-05-15
2
342 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
ID: 2810083
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
ID: 2810388
WELL THANKS TimCottee  I GOT MY ANS SOLVED

THANX A LOT
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 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

19 Experts available now in Live!

Get 1:1 Help Now