I am working on desktop application.
I developed code for notification tray in desktop application.
here is my code for design view..
partial class Form1
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
this.notifyIcon1.Text = "notifyIcon1";
this.notifyIcon1.Visible = true;
this.notifyIcon1.Click += new System.EventHandler(this.notifyIcon1_MouseDoubleClick);
this.notifyIcon1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDoubleClick);
}
private System.Windows.Forms.NotifyIcon notifyIcon1;
}
And below code for notification content.
notifyIcon1.Visible = true;
notifyIcon1.BalloonTipText = "Hello notification";
notifyIcon1.BalloonTipTitle = Dl.name;
notifyIcon1.ShowBalloonTip(4000);
I want to show button on this notification and also I want handle than button click.
Is it possible with desktop application?