How can I create my own events in my C # application like the default?
2 answers
How to connect to NotifyIcon.MouseMove
?
As a basic example, this works (from NotifyIcon
to a Form
):
public Form1() {
InitializeComponent();
notifyIcon1.MouseMove += delegate
{
notifyIcon1.Text = DateTime.Now.TimeOfDay.ToString();
};
notifyIcon1.Icon = SystemIcons.Hand;
notifyIcon1.Visible = true;
}
+5
a source to share