make your own notify icon application
so here is the latest of the cool stuff i have learned. ever want to minimize your winforms application to the bar in the bottom right of your screen by the time? ever wonder how you could put your own clutter down there? well wait no longer. the .net framework has a component called NotifyIcon which is one of those little icons.
so here is what to do to try this at home:
1) create a new winform project
2) add a button named cmdHide from the toolkit
3) add a notifyicon named ntiHide from the toolkit
4) add the following two methods, attaching them to the obvious event handlers:
private void cmdHide_Click(object sender, System.EventArgs e)
{
if(this.Visible)
{
this.Hide();
ntiHide.Visible = true;
}
}
private void ntiHide_DoubleClick(object sender, System.EventArgs e)
{
this.Show();
ntiHide.Visible = false;
}
5) attach your icon to ntiHide through its properties
i will try and construct a full code example in ultraedit.
have fun!
|