mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-29 16:51:18 +13:00
#115, version 0.11.2.0
[Feature] Show icon in taskbar when application is running #115
This commit is contained in:
parent
aa1918ce02
commit
8bdbb83e06
3 changed files with 9 additions and 3 deletions
|
@ -38,9 +38,15 @@ namespace SystemTrayMenu
|
||||||
menus.MainPreload();
|
menus.MainPreload();
|
||||||
taskbarForm.Activated += TasbkarItemActivated;
|
taskbarForm.Activated += TasbkarItemActivated;
|
||||||
taskbarForm.Resize += TaskbarForm_Resize;
|
taskbarForm.Resize += TaskbarForm_Resize;
|
||||||
|
taskbarForm.FormClosed += TaskbarForm_FormClosed;
|
||||||
taskbarForm.Show();
|
taskbarForm.Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void TaskbarForm_FormClosed(object sender, FormClosedEventArgs e)
|
||||||
|
{
|
||||||
|
Application.Exit();
|
||||||
|
}
|
||||||
|
|
||||||
private void TaskbarForm_Resize(object sender, EventArgs e)
|
private void TaskbarForm_Resize(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (taskbarForm.WindowState == FormWindowState.Minimized)
|
if (taskbarForm.WindowState == FormWindowState.Minimized)
|
||||||
|
|
|
@ -35,5 +35,5 @@ using System.Runtime.InteropServices;
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("0.11.1.12")]
|
[assembly: AssemblyVersion("0.11.2.0")]
|
||||||
[assembly: AssemblyFileVersion("0.11.1.12")]
|
[assembly: AssemblyFileVersion("0.11.2.0")]
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace SystemTrayMenu.UserInterface
|
||||||
//we could show behind taskbar?
|
//we could show behind taskbar?
|
||||||
//screen.Bounds.Bottom- Size.Height);
|
//screen.Bounds.Bottom- Size.Height);
|
||||||
//but at the moment we dont want to see this
|
//but at the moment we dont want to see this
|
||||||
screen.Bounds.Bottom); // - Size.Height);
|
screen.Bounds.Bottom + 80); // - Size.Height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue