Bubble Notifications

Hey there,

You all know this little bubbles in Windows XP/2003/LH that popup from the system tray to tell you something? Like the "Found New Hardware" one and the "Virtual Memory Low" one? Does anybody here know how to code that in Microsoft Visual Basic .NET 2003 or Visual Basic Express 2005?

--Adam

#211251

I don't know how to do it in VB, but I can point you to the right API:

http://msdn.microsoft.com/library/en-us/sh..._notifyicon.asp and the NIF_INFO flag for the NOTIFYICONDATA struct parameter.

If you don't know how to read this C style API reference, just search on google for VB+NIF_INFO or something.

#211274

That API thing was greek to me, but I searched VB Nif_Info on Google and found a good tutorial for the balloons. Thanks, Ave.

#211285

If you're working in .Net, you're better looking at this, rather than the unmanaged tripe Ave dishes out ;)

#211372

Stevie talking rubbish.NET again ;): http://vbaccelerator.com/home/NET/Code/Lib..._SysTray_cs.asp As you can see, the component uses unmanaged code...

#211435

Originally posted by AndreasV@Sep 3 2004, 11:55 AM

Stevie talking rubbish.NET again ;): http://vbaccelerator.com/home/NET/Code/Lib..._SysTray_cs.asp As you can see, the component uses unmanaged code...

<{POST_SNAPBACK}>

Look, if you'd spent all morning trying to debug a 3-stage cache's large object memory leakages, you'd just grab the first link off'f Google too :P

I could have sworn there were 100% managed ways to do this -_-

#211437

Didn't think I needed to start a new topic, but:

I used the MSDN Lab product feedback page, complaining that there was no easy way to make the balloon notifications. Here's what I received:

http://lab.msdn.microsoft.com/productfeedb...35-c44abd052e28

As per Mark's specification, NotifyIcon functionality has been enhanced to include the following properties, methods and events:

Properties:

** BalloonTipIcon property – This is an enum same as ToolTipIcon

** BalloonTipText property – Equates to the szInfo field.

** BalloonTipTitle property – Equates to the szInfoTitle field.

Methods:

** ShowBalloonTip(int timeout) – Calls Shell_NotifyIcon with appropriate values.

** ShowBalloonTip(Title, Text, Icon, timeout)

Events:

** BalloonTipShown – raised on the NIN_BALLOONSHOW message (XP and above only)

** BalloonTipClicked – raised on the NIN_BALLOONUSERCLICK message (XP and above only)

** BalloonTipClosed – raised on either NIN_BALLOONTIMEOUT or

This should be released by the time Whidbey Beta 2 comes out.

#217197

I wish they would just get their stuff together and release a stable Whidbey already. The benifits in 2.0 beta 1 are just too damned cool.

#217226

Haha no kidding! I just can't wait :D !

#217446