Ballon Tips

Hello, inside an application i have, i want to have a tool tip popup (its a baloon style) inside my program ontop of a control.  I want it to activate when the application starts... How can i activate this?  

I found the following page that talks about apis such as this.  But i can't get it working...
I am trying to get this working: http://msdn.microsoft.com/vcsharp/default.aspx?pull=/library/en-us/dv_vstechart/html/pinvoke.asp

Dim balloon as New Balloon();
balloon.ParentControl = this.parentTextBox;
balloon.Title = "This is the balloon title";
balloon.Text = "This is where the balloon text appears";
balloon.Icon = BalloonIcon.Info;
balloon.Alignment = BalloonAlignment. TopMiddle;
balloon.IsPositionAbsolute = true;
balloon.IsStemCentered = false;

' show the balloon tip
balloon.Show();

' Hide the balloon tip
balloon.Dispose();
dawnyd01Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HatchITCommented:
I just had a quick look, and noticed two things that may be a problem for you:

1) The code on that page is written for VB.NET 2006.
2) You've only posted the first of about nine code snippets for that section that are all needed to make the code you posted work.  Have you used the other snippets in your application as well?

You could also try to download the sample code they've posted at http://download.microsoft.com/download/8/2/d/82d5ca1d-7174-46f9-a526-b15a8c0b728c/pinvokesamples.msi and compline that, and then try to see how it works?
HatchITCommented:
Grr, sorry, just noticed I said VB.NET 2006 in the last response, should have been "Visual Studio .NET 2005".  The code snippets, obviously, are written in VB and C#...
dawnyd01Author Commented:
Still does not work, i do have vs2005.  I did download the snipits code, i actually have them.  can you try this project?
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

HatchITCommented:
Sorry for the delay, finally found our copy of VS .NET 2005.  I just opened the code that they had posted and compiled it, it ran fine and opened up the balloon sample form just fine.

What error(s) are you getting?  Is your code compiling?  If so, is the code doing anything?  Can you give more information?
dawnyd01Author Commented:
It won't even run.  can you post the code some place for download?
HatchITCommented:
I took my whole MSDN folder that it created (including the executable VS 2005 created) and zipped it to:

http://members.optushome.com.au/johnmoe/files/MSDN.zip

The balloon tips worked (it was all I tested, since it's the only part we're worried about here).  Let me know if that helps at all...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HatchITCommented:
Did this help at all?  Do you need anything further?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.