Results 1 to 12 of 12

Thread: ShowBalloonTip Issue With Vista

  1. #1

    Thread Starter
    Hyperactive Member BadgerBadger's Avatar
    Join Date
    Aug 2009
    Location
    Wales
    Posts
    382

    Angry ShowBalloonTip Issue With Vista

    I have tried to get a balloon tip working with the ShowBalloonTip method of the NotifyIcon.

    My OS is Vista Ultimate 64 bit and after some research I found out that my OS may be the issue.
    I was just wondering if anyone could shed some light on this or if they have the same OS, try it for themselves.

    Here is the code I have tried working with:

    vb.net Code:
    1. Public Class Form1
    2.     Dim sp As New Stopwatch()
    3.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    4.         NotifyIcon1.Icon = Me.Icon
    5.         NotifyIcon1.Visible = True
    6.         NotifyIcon1.ShowBalloonTip(5000, "Test Title", "I'm not appearing", ToolTipIcon.Info)
    7.     End Sub
    8.  
    9.     Private Sub NotifyIcon1_BalloonTipClosed(ByVal sender As Object, ByVal e As System.EventArgs) Handles NotifyIcon1.BalloonTipClosed
    10.         sp.Stop()
    11.         MessageBox.Show(sp.Elapsed.ToString())
    12.     End Sub
    13.  
    14.     Private Sub NotifyIcon1_BalloonTipShown(ByVal sender As Object, ByVal e As System.EventArgs) Handles NotifyIcon1.BalloonTipShown
    15.         MessageBox.Show("shown")
    16.         sp.Start()
    17.     End Sub
    18. End Class

    It seems the shown and closed events do no even get called.
    After some Googling I found out that some other Vista users (not necessarily Ultimate) are having the same issue.

    Is there any workaround at all to this?

    P.S- This is just general curiosity so I don't have any need to make my own version or use a 3rd party class/control.
    "The only thing that interferes with my learning is my education."

  2. #2

    Thread Starter
    Hyperactive Member BadgerBadger's Avatar
    Join Date
    Aug 2009
    Location
    Wales
    Posts
    382

    Re: ShowBalloonTip Issue With Vista

    Sorry for the bump, but does anyone on Vista (preferable Ultimate) have the same issue?

    I have made sure balloontips are enabled on my PC, but still no luck.
    "The only thing that interferes with my learning is my education."

  3. #3
    Addicted Member
    Join Date
    Jun 2009
    Posts
    245

    Re: ShowBalloonTip Issue With Vista

    I tried to copy and paste your code, and it works for me. I'm using Vista 64bit (Home premium).

  4. #4

    Thread Starter
    Hyperactive Member BadgerBadger's Avatar
    Join Date
    Aug 2009
    Location
    Wales
    Posts
    382

    Re: ShowBalloonTip Issue With Vista

    That's very odd indeed. This has got me stumped!

    Thanks for the feedback!
    "The only thing that interferes with my learning is my education."

  5. #5
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: ShowBalloonTip Issue With Vista

    It all works perfectly for me on Vista Ultimate x64. Literally copied and pasted your code into a fresh project, added a button and a notifyicon and thats it.

    Are you sure the code is actually being executed? Have you put a break point on the ShowBalloonTip line and checked to see if this ever actually gets hit when you run the program?
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  6. #6

    Thread Starter
    Hyperactive Member BadgerBadger's Avatar
    Join Date
    Aug 2009
    Location
    Wales
    Posts
    382

    Re: ShowBalloonTip Issue With Vista

    I just placed a breakpoint on it and it does seem to be hit. I'm baffled!
    "The only thing that interferes with my learning is my education."

  7. #7
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: ShowBalloonTip Issue With Vista

    Have you tried to just create a completely new project from scratch and copy and paste the code in (after adding the button and notifyicon obviously) ?
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  8. #8

    Thread Starter
    Hyperactive Member BadgerBadger's Avatar
    Join Date
    Aug 2009
    Location
    Wales
    Posts
    382

    Re: ShowBalloonTip Issue With Vista

    Yeah and just to make sure I tried again but still to no avail. I'm starting to think it must be something to do with my system in particular.
    "The only thing that interferes with my learning is my education."

  9. #9
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: ShowBalloonTip Issue With Vista

    It must be... but its a bit of an odd one. Are other programs able to make balloon tips appear?
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  10. #10

    Thread Starter
    Hyperactive Member BadgerBadger's Avatar
    Join Date
    Aug 2009
    Location
    Wales
    Posts
    382

    Re: ShowBalloonTip Issue With Vista

    To be honest I'm not really sure. I think I can recall some balloontips a while ago, but I can't say I have seen any recently.
    Is there any app in particular that I can use to test this?
    "The only thing that interferes with my learning is my education."

  11. #11
    Addicted Member
    Join Date
    Jun 2009
    Posts
    245

    Re: ShowBalloonTip Issue With Vista

    Hm, I think Windows Update has a ballontip. It appers when you start a download/installation with Windows Update, and it says something like "Click here to watch the progress..." or something.

    Not 100% sure about it though

  12. #12

    Thread Starter
    Hyperactive Member BadgerBadger's Avatar
    Join Date
    Aug 2009
    Location
    Wales
    Posts
    382

    Re: ShowBalloonTip Issue With Vista

    Ah, OK. I'll make sure I keep a look out for it next time there are updates available.

    Thanks!
    "The only thing that interferes with my learning is my education."

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width