mirror of
https://github.com/lupettohf/kv4p-sharp.git
synced 2025-01-19 01:36:30 +08:00
Small fix.
This commit is contained in:
parent
a06e09e997
commit
9d78d50df3
|
@ -60,23 +60,21 @@ namespace RadioControllerApp
|
||||||
|
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRadio));
|
this.AutoScaleMode = AutoScaleMode.Dpi; // Enable DPI scaling
|
||||||
SuspendLayout();
|
|
||||||
//
|
// Form properties
|
||||||
// FormRadio
|
this.Text = "Radio Controller";
|
||||||
//
|
this.Size = new System.Drawing.Size(800, 700);
|
||||||
AutoScaleDimensions = new SizeF(144F, 144F);
|
this.MinimumSize = new System.Drawing.Size(600, 600);
|
||||||
AutoScaleMode = AutoScaleMode.Dpi;
|
this.FormClosing += FormRadio_FormClosing;
|
||||||
ClientSize = new Size(778, 644);
|
|
||||||
Icon = (Icon)resources.GetObject("$this.Icon");
|
// Enable KeyPreview to capture key events
|
||||||
KeyPreview = true;
|
this.KeyPreview = true;
|
||||||
MinimumSize = new Size(600, 600);
|
this.KeyDown += FormRadio_KeyDown;
|
||||||
Name = "FormRadio";
|
this.KeyUp += FormRadio_KeyUp;
|
||||||
Text = "Radio Controller";
|
|
||||||
FormClosing += FormRadio_FormClosing;
|
// Initialize controls
|
||||||
KeyDown += FormRadio_KeyDown;
|
InitializeControls();
|
||||||
KeyUp += FormRadio_KeyUp;
|
|
||||||
ResumeLayout(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitializeControls()
|
private void InitializeControls()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user