Custom Tool Tip Popup for VB6 Picture Box

Posted on 2002-05-16
Last Modified: 2008-02-01
I would like to be able to create my own tool tip popup for VB6 picture boxes.  This is because in certain situations, the built in tool tip box causes unpredictable and uncontrollable paint events, especially in NT and Windows 2000.

Question by:bgdw
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 7014357
Anything you pop up and then remove is going to cause paint events in whatever object it is displayed on top of.

HOwever, you can create your own by creating a form, putting a label on it and displaying the form via a timer.  the timer is disabled and enabled on mousemove over the control you want the tool tip associated with.  when the timer fires, set the caption of the label (if it is not hardcoded) disable the timer and display the form.  If the tooltip is displayed, the timer event hides it.

Set up the form with no border and set the colors and font to mimic a tooltip
LVL 70

Expert Comment

by:Éric Moreau
ID: 7014467
LVL 16

Accepted Solution

Richie_Simonetti earned 200 total points
ID: 7014889
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

LVL 16

Expert Comment

ID: 7014893
If you need only extreme functionality, you could use a label control instead, showing and hidden accordingly.

Author Comment

ID: 7047867
Thanks for the help.  

I didn't phrase the question very well and I apologize for that.  I'm going back to the drawing board and see if I can distill my re-paint issue down a little.  

Thanks again.
LVL 16

Expert Comment

ID: 7048267
If you need more help, just ask.
Thanks for "A" grade.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

695 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