Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Custom Tool Tip Popup for VB6 Picture Box

Posted on 2002-05-16
Medium Priority
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

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 800 total points
ID: 7014889
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses
Course of the Month13 days, 9 hours left to enroll

581 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