Applied Dane's suggestions.
parent
1da9277257
commit
b9c9e53ed7
|
@ -25,6 +25,7 @@
|
|||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
||||
this.check_Numlock = new System.Windows.Forms.CheckBox();
|
||||
this.check_Capslock = new System.Windows.Forms.CheckBox();
|
||||
this.check_Scrolllock = new System.Windows.Forms.CheckBox();
|
||||
|
@ -72,6 +73,7 @@
|
|||
//
|
||||
// comboBox_numlock
|
||||
//
|
||||
this.comboBox_numlock.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBox_numlock.FormattingEnabled = true;
|
||||
this.comboBox_numlock.Items.AddRange(new object[] {
|
||||
"Enabled",
|
||||
|
@ -84,6 +86,7 @@
|
|||
//
|
||||
// comboBox_capslock
|
||||
//
|
||||
this.comboBox_capslock.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBox_capslock.FormattingEnabled = true;
|
||||
this.comboBox_capslock.Items.AddRange(new object[] {
|
||||
"Enabled",
|
||||
|
@ -96,6 +99,7 @@
|
|||
//
|
||||
// comboBox_scrolllock
|
||||
//
|
||||
this.comboBox_scrolllock.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBox_scrolllock.FormattingEnabled = true;
|
||||
this.comboBox_scrolllock.Items.AddRange(new object[] {
|
||||
"Enabled",
|
||||
|
@ -132,11 +136,15 @@
|
|||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
||||
this.ClientSize = new System.Drawing.Size(350, 150);
|
||||
this.Controls.Add(this.groupBox_check);
|
||||
this.Controls.Add(this.groupBox_combo);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "Form1";
|
||||
this.Text = "Configuration";
|
||||
this.groupBox_check.ResumeLayout(false);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -34,6 +34,9 @@
|
|||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>Resources\live.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
|
|
|
@ -32,6 +32,7 @@ namespace KeyWatch__
|
|||
notifyIcon.Icon = KeyWatch__.Properties.Resources.AppIcon;
|
||||
notifyIcon.ContextMenu = new ContextMenu(new MenuItem[] { configMenuItem, exitMenuItem });
|
||||
notifyIcon.Visible = true;
|
||||
notifyIcon.DoubleClick += (o, e) => { ShowConfig(o, e); };
|
||||
|
||||
LoadSettings();
|
||||
}
|
||||
|
@ -57,7 +58,6 @@ namespace KeyWatch__
|
|||
// We must manually tidy up and remove the icon before we exit.
|
||||
// Otherwise it will be left behind until the user mouses over.
|
||||
notifyIcon.Visible = false;
|
||||
|
||||
Application.Exit();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue