using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace showTrayC
{
public partial class Form1 : Form
{
NotifyIcon notify = new NotifyIcon();
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
notifyIcon1.Visible = true;
notifyIcon1.BalloonTipIcon = ToolTipIcon.Info;
notifyIcon1.BalloonTipText = "Application working...";
notifyIcon1.BalloonTipTitle = "TrayIcon example application";
notifyIcon1.ShowBalloonTip(2000);
}
private void Form1_Load(object sender, EventArgs e)
{
notifyIcon1.Visible = false;
}
}
}
No comments:
Post a Comment