mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
[New Utility]Mouse Without Borders
* Integrate Mouse Without Borders into PowerToys --------- Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
This commit is contained in:
committed by
Jaime Bernardo
parent
a0b9af039d
commit
29eebe16a4
51
src/modules/MouseWithoutBorders/App/Form/frmLogon.cs
Normal file
51
src/modules/MouseWithoutBorders/App/Form/frmLogon.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* File name: frmLogon.cs (not used)
|
||||
* History:
|
||||
* Truong Do (ductdo) 2008-10-XX Created/Updated
|
||||
* */
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace MouseWithoutBorders
|
||||
{
|
||||
internal partial class frmLogon : Form
|
||||
{
|
||||
internal System.Windows.Forms.Label LabelDesktop
|
||||
{
|
||||
get { return labelDesktop; }
|
||||
set { labelDesktop = value; }
|
||||
}
|
||||
|
||||
internal frmLogon()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void frmLogon_Load(object sender, EventArgs e)
|
||||
{
|
||||
Left = 10;
|
||||
Top = 10;
|
||||
Width = labelDesktop.Width + 2;
|
||||
Height = labelDesktop.Height + 2;
|
||||
}
|
||||
|
||||
private void frmLogon_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
if (e.CloseReason != CloseReason.WindowsShutDown)
|
||||
{
|
||||
e.Cancel = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void frmLogon_Shown(object sender, EventArgs e)
|
||||
{
|
||||
//Common.SetForegroundWindow(Common.GetDesktopWindow());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user