mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-20 19:30:31 +12: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
|
@ -38,9 +38,15 @@ namespace SystemTrayMenu
|
|||
menus.MainPreload();
|
||||
taskbarForm.Activated += TasbkarItemActivated;
|
||||
taskbarForm.Resize += TaskbarForm_Resize;
|
||||
taskbarForm.FormClosed += TaskbarForm_FormClosed;
|
||||
taskbarForm.Show();
|
||||
}
|
||||
|
||||
private void TaskbarForm_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
Application.Exit();
|
||||
}
|
||||
|
||||
private void TaskbarForm_Resize(object sender, EventArgs e)
|
||||
{
|
||||
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
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.11.1.12")]
|
||||
[assembly: AssemblyFileVersion("0.11.1.12")]
|
||||
[assembly: AssemblyVersion("0.11.2.0")]
|
||||
[assembly: AssemblyFileVersion("0.11.2.0")]
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace SystemTrayMenu.UserInterface
|
|||
//we could show behind taskbar?
|
||||
//screen.Bounds.Bottom- Size.Height);
|
||||
//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