Important alert: (current site time 11/24/2014 10:26:01 AM EDT)
 

winzip icon

Easy Balloon Tool Tip Class

Email
Submitted on: 12/1/2004 7:48:13 AM
By: Mark Mokoski  
Level: Intermediate
User Rating: By 22 Users
Compatibility: VB 6.0
Views: 34236
author picture
(About the author)
 
     Class module for adding Balloon or Rectangle style tool tips to your forms. Tool Tips can be Multiline and colors are selectable. Because of my other PSC submission http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=57128 on how to use Balloon tips in the Systray, which is included in the ZIP, I did some API digging and came up with this. Also included as part of the demo app is a Code Generator for Tool Tips made with the demo app, so you can cut and paste into your own code. I'm sure there are many improvments that can be made, but this works, so take it and go play.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 17 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

12/1/2004 9:07:59 AMBrian Battles WS1O

This is SOOOOO handy, and the gone generator makes it a snap to include in any project. What took so long for someone to figure this out? EXCELLENT! 5 HUGE ones from me!
(If this comment was disrespectful, please report it.)

 
12/1/2004 9:09:04 AMBrian Battles WS1O

I meant *code* generator...oops, guess I shouldn't type until I've had my coffee!
(If this comment was disrespectful, please report it.)

 
12/1/2004 6:02:48 PMDoug C.

Brilliant. The best Tool Tip coding I've seen. Will be useful in many projects. 5 from me.

Doug.
Adelaide, Australia
(If this comment was disrespectful, please report it.)

 
12/1/2004 6:38:51 PMAnders Lyman

Excellent work!!!
5 green guys!
(If this comment was disrespectful, please report it.)

 
12/2/2004 2:05:19 PM

Great Tool will be very useful in future projects. 5 Globes from me!!!!!
(If this comment was disrespectful, please report it.)

 
12/4/2004 8:05:46 PMPaul Turcksin

Nice, but would be more useful as an AddIn. 5 from me.
(If this comment was disrespectful, please report it.)

 
12/5/2004 2:38:11 AMEvan Toder

that is real nice!!! 5 implants
(If this comment was disrespectful, please report it.)

 
12/6/2004 9:56:41 PMMark Mokoski

Uploaded new ZIP. Cleaned up two or three GUI problems I can across. Again, take it and play with it!
(If this comment was disrespectful, please report it.)

 
12/17/2004 8:27:15 PM

Just great! Thanks a lot!
(If this comment was disrespectful, please report it.)

 
12/26/2004 2:01:58 PMAbhishek.NET

this code works fine, but if i apply xp theme to the application having tooltips, the tooltips does not appers after i click the button. where button is having the tooltip.
(If this comment was disrespectful, please report it.)

 
1/11/2005 3:45:39 AMmps::at

Hello,

first of all thank you for writing this code ;)
I think two thing are missing for the perfect code. First fire the tooltip through code. For example I bind a ToolTip to a Text Control. On checking the form for error or wrong UserInput I see that on this Text Control is wrong Data so I want to throw the error through the ToolTip
The second point is that I have to create an object for each Control I want to bind a custom ToolTip. So wish is that the Class can - once initilized on a form - create for each vb-given ToolTipText a Custom ToolTip. (I think i did see that a time before on PSC??)

(If this comment was disrespectful, please report it.)

 
1/16/2005 9:09:20 AM

Hi Sir
thx for this code
but I want some code in visual basic that is used for outbound calling crm
I think You will help me
(If this comment was disrespectful, please report it.)

 
1/28/2005 4:00:19 PMsean oats

in Command2_Click()
I would consider changing
Command4Tip.Title = TipTitleText to
Command4Tip.Title = IIf(Me.Text4 = "", " ", Me.Text4)

That way, you don't need a title to set the icon. I don't see the need for the restriction. Great code otherwise.
(If this comment was disrespectful, please report it.)

 
1/28/2005 7:07:26 PMMark Mokoski

The "No Icon without Title" was a style choice on my part.
(If this comment was disrespectful, please report it.)

 
1/28/2005 8:34:18 PMsean oats

Fair Enough. It's still wicked cool :)
(If this comment was disrespectful, please report it.)

 
2/6/2005 9:51:02 PM

Nice...
(If this comment was disrespectful, please report it.)

 
6/3/2005 9:29:20 AMPaul Westerman

An excellent utility, thank you - one question though (I think someone else asked this), is there a way to force the tip to appear automatically when the form opens? I want to use the tip to point out a new bit of functionality to my users. I've tried calling ShowWindow with the hWnd but don't know what to put in nCmdShow. Or perhaps I'm barking up the wrong tree...Many thanks!
(If this comment was disrespectful, please report it.)

 
2/10/2006 9:49:57 AMmathprof

Has anyone figured out how to fire the tool tip from code?

Thanks.
(If this comment was disrespectful, please report it.)

 
2/25/2006 5:42:06 PMMatt DeKok

Keep getting error:

Run-timer error '91':

Object variable or With block variable not set.

Got any ideas?
(If this comment was disrespectful, please report it.)

 
2/25/2006 9:54:21 PMMark Mokoski

Matt ...
I downloaded the files here at PSC just to be on the safe side that the achive is fine. It ran error free on my win XP Pro sp2 laptop and my win2k sp4 machine here at home. Olny ting I can think of off the top is a cut and paste error of the class, or missing the delare(s) at the start of you main module or form.
(If this comment was disrespectful, please report it.)

 
4/7/2007 12:38:25 PMChief A1

I believe that you are a cool guy. I've used your codes several times. Can you please get me something on how to save a picture into an OLE object field in MS Access and read it back? Thanks
(If this comment was disrespectful, please report it.)

 
2/11/2008 9:06:29 PMfrancis

Hi
How do you change the color of the balloon? Sometimes I want to issue a warning in red!

Great code
Happy programming

(If this comment was disrespectful, please report it.)

 
11/11/2009 11:43:43 PMALEXLOV

Excellent, but one question, how i increment the show time?
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.