Automatically set focus to profile select or first control

This commit is contained in:
Jonathan Jenne
2023-12-20 09:22:52 +01:00
parent 65ad9de1e2
commit 349351ba82
2 changed files with 7 additions and 1 deletions

View File

@@ -1738,6 +1738,7 @@ Public Class frmIndex
_Logger.Info("Setting Last Saved DocType: {0}", CURRENT_LASTDOKART)
ComboboxDoctype.EditValue = oFoundDocType
ComboboxDoctype.SelectNextControl(ComboboxDoctype, forward:=True, tabStopOnly:=True, nested:=True, wrap:=False)
End If
End If
@@ -1762,12 +1763,18 @@ Public Class frmIndex
If oFoundDocType IsNot Nothing Then
_Logger.Debug("DocType found: [{0}]", oFoundDocType)
ComboboxDoctype.EditValue = oFoundDocType
ComboboxDoctype.SelectNextControl(ComboboxDoctype, forward:=True, tabStopOnly:=True, nested:=True, wrap:=False)
Exit For
End If
End If
Next
End If
If ComboboxDoctype.EditValue Is Nothing Then
ComboboxDoctype.Select()
End If
Catch ex As Exception
ShowErrorMessage(ex, "Form Shown")
End Try