SystemTrayMenu/UserInterface/TaskbarForm.cs
Markus Hofknecht c140284f2a #115, version 0.11.1.9
[Feature] Show icon in taskbar when application is running #115
2020-06-27 15:50:36 +02:00

22 lines
625 B
C#

using System.Drawing;
using System.Windows.Forms;
namespace SystemTrayMenu.UserInterface
{
public partial class TaskbarForm : Form
{
public TaskbarForm()
{
InitializeComponent();
//Hide the form under the taskbar of primary screen
Screen screen = Screen.PrimaryScreen;
Location = new Point(screen.Bounds.Right - 155,
screen.Bounds.Bottom);
//This would be above of taskbar
//Location = new Point(screen.Bounds.Right - 155,
// screen.Bounds.Bottom - Height - 65);
}
}
}