• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 626
  • Last Modified:

Custom Tool Tip Popup for VB6 Picture Box

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.

1 Solution
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
Éric MoreauSenior .Net ConsultantCommented:
Richie_SimonettiIT OperationsCommented:
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Richie_SimonettiIT OperationsCommented:
If you need only extreme functionality, you could use a label control instead, showing and hidden accordingly.
bgdwAuthor Commented:
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.
Richie_SimonettiIT OperationsCommented:
If you need more help, just ask.
Thanks for "A" grade.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now