I'd like to use a "taskbar notification" in one of my apps. What I mean is that I'd like to have one of those little message boxes that look like tooltips (yellow background) slide up from the taskbar, stay up for a few seconds, then slide back down. I've seen them referred to as taskbar notifications, but they probably have a different name in the VC#/.NET. If anyone knows what they are called and how to use them, I'd appreciate knowing about it.
Thanks,
Jay

"taskbar notification"
Regis M
Have a look at this source, here.
Then you can slide the form in by adjusting it's position, by adding code similar to this:
Screen desktop = Screen.PrimaryScreen;
int x = desktop.WorkingArea.Width;
int y = desktop.WorkingArea.Height;
Location = new Point(x - 306, y + 54);
Visible = true;
for (int i = y+54; i >= y-64; i -= 5)
{
Location = new Point(x - 308, i);
Refresh();
Thread.Sleep(10);
}
There might be a nicer way to do it, but you get the idea--- the form scrolls in from the bottom half of the screen where the systray is.
(ed: this is acting on the main form, if you want some other form, you'd have to specify that, instead of simply "Location" et al...)
vbpixelgog
japm
Hello Jay.
You cam use NotifyIcon control for this purpose.
Just drag that from the Toolbox window to ur form. Setup the property. Then run u will see your app icon on the taskbar. then u can add alert as you like.
Regards
Benlbit
Hi,
Thanks for your answer, but the NotifyIcon is not what I'm talking about.
First of all, I don't want an icon just sitting in the taskbar when my app (actually, an IE toolbar) is running. All I'm talking about is essentially a variation of a MessageBox. The box looks like a tooltip (yellow background and so on) and appears in the lower right of the screen just above the taskbar, but it is not related to anything in the taskbar. Moreover, it appears under programmatic control, just like when a MessageBox pops up to give the user a message, not under user control, like when a tooltip appears after a user hovers the mouse over a control.
I've seen this happen with browsers to tell users things like that a file has finished downloading. Firefox provides the ability to put up these sorts of alerts by using its nsIAlertsService interface, which must be wrapping underlying Windows functionality. I'm asking what that underlying Windows functionality is and how to access it using the VC#/.NET framework.
Jay