Solved

Custom Tool Tip Popup for VB6 Picture Box

Posted on 2002-05-16
6
553 Views
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.



0
Comment
Question by:bgdw
6 Comments
 
LVL 5

Expert Comment

by:bob_online
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
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 7014467
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 200 total points
ID: 7014889
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 16

Expert Comment

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

Author Comment

by:bgdw
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.
0
 
LVL 16

Expert Comment

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

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
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…

707 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

11 Experts available now in Live!

Get 1:1 Help Now