C
C#12mo ago
NullIntended

✅ tray system

cs #region Background
private void frmSystemTray_Load(object sender, EventArgs e)
{
notifyIcon1.BalloonTipText = "Application Minimized.";
notifyIcon1.BalloonTipTitle = "File Backup System";
notifyIcon1.ShowBalloonTip(1000);
}

private void frmSystemTray_Resize(object sender, EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized)
{
// ShowInTaskbar = false;
Hide();
notifyIcon1.Visible = true;
notifyIcon1.ShowBalloonTip(1000);
}
}
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
{
MessageBox.Show("NotifyIcon Double Clicked!");
Show();
ShowInTaskbar = true;
notifyIcon1.Visible = false;
WindowState = FormWindowState.Normal;
}
cs #region Background
private void frmSystemTray_Load(object sender, EventArgs e)
{
notifyIcon1.BalloonTipText = "Application Minimized.";
notifyIcon1.BalloonTipTitle = "File Backup System";
notifyIcon1.ShowBalloonTip(1000);
}

private void frmSystemTray_Resize(object sender, EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized)
{
// ShowInTaskbar = false;
Hide();
notifyIcon1.Visible = true;
notifyIcon1.ShowBalloonTip(1000);
}
}
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
{
MessageBox.Show("NotifyIcon Double Clicked!");
Show();
ShowInTaskbar = true;
notifyIcon1.Visible = false;
WindowState = FormWindowState.Normal;
}
Any idea why it wont open the form afteri put it into system tray?
1 Reply
NullIntended
NullIntended12mo ago
It minimizes and goes to the tray just doesn't come out when I double click