From 2f65984f0fc2cdc59e676f87049ddbc0914efeb6 Mon Sep 17 00:00:00 2001 From: Kilian Wirl Date: Tue, 28 Apr 2026 09:18:41 +0200 Subject: [PATCH] Tablet Anpassungen --- AA-Forms/FormLogin.cs | 1 + AA-Forms/FormShowUserControl.Designer.cs | 8 +++++--- AA-Forms/FormShowUserControl.cs | 8 ++++++-- Verwaltung_ReadMe.txt | 2 +- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/AA-Forms/FormLogin.cs b/AA-Forms/FormLogin.cs index e3dcb36..5de992b 100644 --- a/AA-Forms/FormLogin.cs +++ b/AA-Forms/FormLogin.cs @@ -170,6 +170,7 @@ namespace Deckungsbeitrag } private void textBox_Leave(object sender, EventArgs e) { + this.buttonAnmelden.Focus(); } } } diff --git a/AA-Forms/FormShowUserControl.Designer.cs b/AA-Forms/FormShowUserControl.Designer.cs index bea06b4..2e65984 100644 --- a/AA-Forms/FormShowUserControl.Designer.cs +++ b/AA-Forms/FormShowUserControl.Designer.cs @@ -33,21 +33,23 @@ // // FormShowUserControl // - this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Control; - this.ClientSize = new System.Drawing.Size(534, 692); + this.ClientSize = new System.Drawing.Size(475, 554); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FormShowUserControl"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "FormShowUserControl"; + this.TopMost = true; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormShowUserControl_FormClosing); this.Load += new System.EventHandler(this.FormShowUserControl_Load); this.Shown += new System.EventHandler(this.FormShowUserControl_Shown); + this.ChangeUICues += new System.Windows.Forms.UICuesEventHandler(this.FormShowUserControl_ChangeUICues); this.ResumeLayout(false); } diff --git a/AA-Forms/FormShowUserControl.cs b/AA-Forms/FormShowUserControl.cs index 73b078e..75214c3 100644 --- a/AA-Forms/FormShowUserControl.cs +++ b/AA-Forms/FormShowUserControl.cs @@ -61,8 +61,6 @@ namespace Deckungsbeitrag.AA_Forms } else { - this.BringToFront(); - this.CenterToScreen(); this.Text = "HEUTIGE TOUR WÄHLEN"; } } @@ -102,6 +100,7 @@ namespace Deckungsbeitrag.AA_Forms private void FormShowUserControl_Shown(object sender, EventArgs e) { this.ClientSize = new Size(uc.Width, uc.Height); + this.CenterToScreen(); } private void FormShowUserControl_FormClosing(object sender, FormClosingEventArgs e) @@ -114,5 +113,10 @@ namespace Deckungsbeitrag.AA_Forms } } + + private void FormShowUserControl_ChangeUICues(object sender, UICuesEventArgs e) + { + if (e.ShowKeyboard == false) this.CenterToScreen(); + } } } diff --git a/Verwaltung_ReadMe.txt b/Verwaltung_ReadMe.txt index b60a0b1..c820d92 100644 --- a/Verwaltung_ReadMe.txt +++ b/Verwaltung_ReadMe.txt @@ -66,5 +66,5 @@ Build-Info: === ⚙️ INSTALL-REMINDER (1) === - ⚙️ DB anpassen. (Priority in Auftrag etc.) [Auftrag.cs] -Installation: 28.04.2026 08:40 +Installation: 28.04.2026 09:16 =====================================