System Tray Icon using C#

Making system tray icon for your application using c# is very easy.

Copy the following code in your form loading event.

private NotifyIcon appIcon = new NotifyIcon();

Icon ico = new Icon("icon.ico");
appIcon.Icon = ico;
appIcon.Text = "Vinoth Application";
appIcon.Visible = true;

put your icon file in your bin->Debug folder.

then run the application ...that's all.

No comments: