I'm coding for 2 days now and have 2 questions right now. How is it possible to show my app in the taskbar and when I minimize it it goes to the system tray with an icon.
Right now I can only show it in system tray and not both, or it won't dissapear when I minimize it. This is my code:
private void Form1_Resize_1(object sender, EventArgs e)
{
Hide();
if (WindowState==FormWindowState.Minimized)
{
notifyIcon1.BalloonTipText = "De applicatie is geminimaliseerd naar de system tray.";
notifyIcon1.BalloonTipTitle = "Money";
notifyIcon1.ShowBalloonTip(1000);
}
}
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
{
Show();
WindowState = FormWindowState.Normal;
}
The ShowInTaskbar is false is always set like that.
My second problem is when I double click the system tray icon, the app goes back to normal but minimize directly. If I double click a 2nd time it works.
As 3rd I'd like to load a browser like Chrome inside the a Windows Form. Is this possible?
If more code is needed, I can upload.


Sign In
Create Account

Back to top










