473,326 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Balloons in Word

74
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.
Aug 31 '07 #1
7 2069
sgrec7
59
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.
ok i think this is what your after (BTW im using terminology that is a mix of VB 6 and VB.net)

Expand|Select|Wrap|Line Numbers
  1. Private Sub label1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles label1.MouseHover
  2. picturebox1.visible = true
    picturebox1.top = label1.top 
    picturebox1.left = label1.left
    end sub
  3.  
  4.  
(picture1 is the balloon)

(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
Sep 2 '07 #2
Hutch
74
ok i think this is what your after (BTW im using terminology that is a mix of VB 6 and VB.net)

Expand|Select|Wrap|Line Numbers
  1. Private Sub label1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles label1.MouseHover
  2. picturebox1.visible = true
    picturebox1.top = label1.top 
    picturebox1.left = label1.left
    end sub
  3.  
  4.  
(picture1 is the balloon)

(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
This code is not working, here is what i am doing


Private Sub label1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs)

Handles label1.mousehover

If label1 = "SpecSales" Then
Picturebox1 = "Test"

Picturebox1.Visible = True
Picturebox1.Top = label1.Top
Picturebox1.Left = label1.Left
End Sub
Sep 4 '07 #3
This code is not working, here is what i am doing


Private Sub label1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs)

Handles label1.mousehover

If label1 = "SpecSales" Then
Picturebox1 = "Test"

Picturebox1.Visible = True
Picturebox1.Top = label1.Top
Picturebox1.Left = label1.Left
End Sub
If you are using VB.net then can you not just add a tool tip, which will do all this for you? Tho i think it will only allow text to appear as the balloon?
Sep 5 '07 #4
Hutch
74
I am just using VBA, and i have no idea what a tool tip is?
Sep 5 '07 #5
Ali Rizwan
925 512MB
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.
Hi
Try this one it will help u a lot.Custom Tool Tip
Sep 5 '07 #6
sgrec7
59
sorry mate, i thought that you meant a picture of a balloon, (not a balloon tip) ;-(

na im sorry, i don't know anything about balloon tips

sorry for the mix around

sgrec7
Sep 5 '07 #7
pureenhanoi
175 100+
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.
Open Microsoft Word.
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:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Document_Open()
  2. With Assistant.NewBalloon
  3.     .Animation = msoAnimationAppear
  4.     .Text = "hello world"
  5.     .Labels(1).Text = "Click me"
  6.     .Labels(2).Text = "No, click me"
  7.     .Show
  8. End With
  9. End Sub
  10.  
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 appears
Sep 6 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
3
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone...
2
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to...
3
by: Xah Lee | last post by:
there are two library for popup balloons: • Erik Bosrup's overlib at: http://www.bosrup.com/web/overlib/ • Walter Zorn from: http://www.walterzorn.com/tooltip/tooltip_e.htm however,...
2
by: Mythran | last post by:
There a way to add balloons to the system tray icons (our own) via C#/VB.Net 1.1? Thx, Mythran
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
0
by: alivip | last post by:
I write code to get most frequent words in the file I won't to implement bigram probability by modifying the code to do the following: How can I get every Token (word) and ...
5
by: alivip | last post by:
How can I get every Token (word) and PreviousToken(Previous word) From multube files and frequency of each two word my code is trying to get all single word and double word (every Token (word) and...
5
by: njuneardave | last post by:
I have a full-screen C# app, but windows notifications (the little balloons on the bottom right-hand of the screen) and outlook reminders will pop on top of my app. i want to prevent them from...
2
by: mortovski | last post by:
Hi there, In later versions of Microsoft Word, you can make 'comments' on what someone has written... and a line comes out to a neat little bubble which you can write some text in. I'd like to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.