Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New message pop up window on background c#

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.

like image 607
Michael A Avatar asked Dec 15 '25 09:12

Michael A


1 Answers

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 );
}
like image 193
shaunmartin Avatar answered Dec 16 '25 23:12

shaunmartin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!