Skip to content

Instantly share code, notes, and snippets.

@Fresh-Dev
Created February 10, 2016 19:23
Show Gist options
  • Save Fresh-Dev/bfe470b8d61929b312f7 to your computer and use it in GitHub Desktop.
Save Fresh-Dev/bfe470b8d61929b312f7 to your computer and use it in GitHub Desktop.
Systembenachrichtigung / Notification
/// Add NotifyIcon via Designer first
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Displaynotify();
}
protected void Displaynotify()
{
try
{
notifyIcon1.Icon = new System.Drawing.Icon(Path.GetFullPath(@"C:\Users\Kevin Kleinjung\Desktop\FlatWoken-master\FlatWoken\scalable\apps\ico128\power_B.svg.ico"));
notifyIcon1.Text = "Export Datatable Utlity";
notifyIcon1.Visible = true;
notifyIcon1.BalloonTipTitle = "Welcome Devesh omar to Datatable Export Utlity";
notifyIcon1.BalloonTipText = "Click Here to see details";
notifyIcon1.ShowBalloonTip(100);
}
catch (Exception ex)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment