Does anyone know how to make a Balloon pop-up over a certain text when you mouse over it? The ballon would contain predetermed text. Any help would be great thanks.
Balloons in Word
Collapse
X
-
Originally posted by HutchDoes anyone know how to make a Balloon pop-up over a certain text when you mouse over it? The ballon would contain predetermed text. Any help would be great thanks.
Code:Private Sub label1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles label1.MouseHover [INDENT]picturebox1.visible = true[/INDENT] [INDENT]picturebox1.top = label1.top [/INDENT][INDENT]picturebox1.left = label1.left[/INDENT] end sub
(label1 is the writing that you hover over)
you would then have to set something up to make the balloon disappear (like a button or something)
(that was mainly VB.net speak)
sgrec7 -
Originally posted by sgrec7ok i think this is what your after (BTW im using terminology that is a mix of VB 6 and VB.net)
Code:Private Sub label1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles label1.MouseHover [INDENT]picturebox1.visible = true[/INDENT] [INDENT]picturebox1.top = label1.top [/INDENT][INDENT]picturebox1.left = label1.left[/INDENT] end sub
(label1 is the writing that you hover over)
you would then have to set something up to make the balloon disappear (like a button or something)
(that was mainly VB.net speak)
sgrec7
Private Sub label1_MouseHov er(ByVal sender As Object, ByVal e As System.EventArg s)
Handles label1.mousehov er
If label1 = "SpecSales" Then
Picturebox1 = "Test"
Picturebox1.Vis ible = True
Picturebox1.Top = label1.Top
Picturebox1.Lef t = label1.Left
End SubComment
-
Originally posted by HutchThis code is not working, here is what i am doing
Private Sub label1_MouseHov er(ByVal sender As Object, ByVal e As System.EventArg s)
Handles label1.mousehov er
If label1 = "SpecSales" Then
Picturebox1 = "Test"
Picturebox1.Vis ible = True
Picturebox1.Top = label1.Top
Picturebox1.Lef t = label1.Left
End SubComment
-
Originally posted by HutchDoes anyone know how to make a Balloon pop-up over a certain text when you mouse over it? The ballon would contain predetermed text. Any help would be great thanks.
Try this one it will help u a lot.Custom Tool TipComment
-
Originally posted by HutchDoes anyone know how to make a Balloon pop-up over a certain text when you mouse over it? The ballon would contain predetermed text. Any help would be great thanks.
Select Help > Show the Office Assistant
If you cant see the Assistant appears, then you must install Office assistant again.
Create a new document.
From Tools menu select Macro > Security
Set the security level to Medium or Low.
Press Alt + F11 to open Visual Basic Editor.
Write down this code:
[CODE=vb]
Private Sub Document_Open()
With Assistant.NewBa lloon
.Animation = msoAnimationApp ear
.Text = "hello world"
.Labels(1).Text = "Click me"
.Labels(2).Text = "No, click me"
.Show
End With
End Sub
[/CODE]
Save the code.
Close Visual Basic Editor
From winword, save new document to c:\doc1.doc
Close winword.
Open doc1.doc again, and you will see the Ballon appearsComment
Comment