Sign in
United States (English)
Brasil (Português)
Česká republika (Čeština)
Deutschland (Deutsch)
España (Español)
France (Français)
Italia (Italiano)
Россия (Русский)
대한민국 (한국어)
中华人民共和国 (中文)
台灣 (中文)
日本 (日本語)
香港特别行政區 (中文)
Visual Basic
Home
Library
Learn
Downloads
Support
Community
Forums
Visual Basic
>
Visual Basic Forums
>
Visual Basic Power Packs
>
Tooltips
Ask a question
Search Forums:
Search Visual Basic Power Packs Forum
Search All Visual Basic Forums
Search All MSDN Forums
Tooltips
Tuesday, September 25, 2007 6:49 AM
Benny V
0
Sign In to Vote
How do I popup tooltip from a shape control?
Reply
Quote
Answers
Tuesday, September 25, 2007 8:43 PM
JohnHart_MSFT
Moderator
0
Sign In to Vote
You could do something like the following;
Dim
tp
As
New
ToolTip()
Private
Sub
OvalShape1_MouseHover(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
OvalShape1.MouseHover
tp.Show(
"OvalShape tooltip"
, ShapeContainer1, OvalShape1.Left, OvalShape1.Top, 5000)
End
Sub
Private
Sub
OvalShape1_MouseLeave(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
OvalShape1.MouseLeave
tp.Hide(ShapeContainer1)
End
Sub
Reply
Quote
All Replies
Tuesday, September 25, 2007 8:43 PM
JohnHart_MSFT
Moderator
0
Sign In to Vote
You could do something like the following;
Dim
tp
As
New
ToolTip()
Private
Sub
OvalShape1_MouseHover(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
OvalShape1.MouseHover
tp.Show(
"OvalShape tooltip"
, ShapeContainer1, OvalShape1.Left, OvalShape1.Top, 5000)
End
Sub
Private
Sub
OvalShape1_MouseLeave(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
OvalShape1.MouseLeave
tp.Hide(ShapeContainer1)
End
Sub
Reply
Quote
Wednesday, October 14, 2009 2:52 PM
Sergiu Dudnic
0
Sign In to Vote
You can use also:
ToolTip1.SetToolTip(Me.ShapeContainer1, "hehehe oval shape!")
where:
Me.ShapeContainer1 = New Microsoft.VisualBasic.PowerPacks.ShapeContainer
Me.OvalShape1 = New Microsoft.VisualBasic.PowerPacks.OvalShape
Best regards, Sergiu
Reply
Quote
Need Help with Forums? (FAQ)
© 2009 Microsoft Corporation. All rights reserved.
Manage Your Profile
|
Terms of Use
|
Trademarks
|
Privacy Statement
|
Contact Us