I need a pop up window that will be displayed on the bottom right side of the screen. It's supposed to pop when a new message is received within my software. How can i program it? Create new form and use it? How can I program it to run on background without interrupting other user actions?
Thanks.
Check out NotifyIcon.ShowBalloonTip
. And here's an example.
Basically, you add a NotifiyIcon
to your form, and do something like this (from the MSDN page linked above):
void Form1_DoubleClick(object sender, EventArgs e)
{
notifyIcon1.Visible = true;
notifyIcon1.ShowBalloonTip(20000, "Information", "This is the text",
ToolTipIcon.Info );
}
您可以使用NotifyIcon类及其方法ShowBalloonTip(Int32, String, String, ToolTipIcon)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.