2020-06-28 01:50:36 +12:00
|
|
|
|
using System.Drawing;
|
2020-06-27 21:01:12 +12:00
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace SystemTrayMenu.UserInterface
|
|
|
|
|
{
|
|
|
|
|
public partial class TaskbarForm : Form
|
|
|
|
|
{
|
|
|
|
|
public TaskbarForm()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2020-06-28 01:50:36 +12:00
|
|
|
|
|
|
|
|
|
//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);
|
2020-06-27 21:01:12 +12:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|