diff --git a/Login.xaml b/Login.xaml index 880a82e..cc8c6e3 100644 --- a/Login.xaml +++ b/Login.xaml @@ -5,8 +5,9 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:input="clr-namespace:System.Windows.Input;assembly=PresentationCore" xmlns:local="clr-namespace:formula_manage" - mc:Ignorable="d" - Title="Login" Height="360" Width="248" Loaded="Window_Loaded"> + mc:Ignorable="d" Title="Login" + Height="340" Width="248" MaxHeight="340" MaxWidth="248" ResizeMode="NoResize" + Loaded="Window_Loaded" WindowStyle="None"> diff --git a/Login.xaml.cs b/Login.xaml.cs index 7e96c32..dca71c0 100644 --- a/Login.xaml.cs +++ b/Login.xaml.cs @@ -30,15 +30,11 @@ namespace formula_manage const int KEYEVENTF_KEYUP = 0x2; if (up) { - keybd_event((byte)key, 0x45, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, (UIntPtr)0); - } else { - keybd_event((byte)key, 0x45, KEYEVENTF_EXTENDEDKEY, (UIntPtr)0); - } }