transparent
Programmer
How do you add little icons to the task bar at the bottom right - like messenger in c# .net??
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
public class DogForm : System.Windows.Forms.Form
{
private System.Windows.Forms.NotifyIcon notifyIcon1;
static void Main()
{
DogForm frm= new DogForm();
// Set the icon that will be displayed in systray
notifyIcon1.Icon = new Icon(Assembly.GetExecutingAssembly().GetManifestResourceStream("myAssembly.watchdogsystrayicon.ico"), 16, 16);
Application.Run(frm);
}
public DogForm()
{
//...
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
//...
// Handle the DoubleClick event to activate the form
notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
// Set the ContextMenu property - the menu that will appear when the systray icon is right clicked.
// notifyIcon1.ContextMenu = this.contextMenu1;
// Tool tip example
notifyIcon.Text = Application.ProductName + " is running for " + Environment.UserName;
notifyIcon1.Visible = true;
}
private void notifyIcon1_DoubleClick(object Sender, EventArgs e)
{
// Show the form when the notify icon is double-clicked.
if (this.WindowState == FormWindowState.Minimized)
this.WindowState = FormWindowState.Normal;
this.Activate();
}
}