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