dawnyd01
asked on
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();
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
balloon.IsStemCentered = false;
' show the balloon tip
balloon.Show();
' Hide the balloon tip
balloon.Dispose();
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#...
ASKER
Still does not work, i do have vs2005. I did download the snipits code, i actually have them. can you try this project?
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?
What error(s) are you getting? Is your code compiling? If so, is the code doing anything? Can you give more information?
ASKER
It won't even run. can you post the code some place for download?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did this help at all? Do you need anything further?
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?