Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
feat: InitSerialInput
Browse files Browse the repository at this point in the history
  • Loading branch information
CCXXXI committed Jul 13, 2022
1 parent 2642721 commit b1d25f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frmMain.vb
Original file line number Diff line number Diff line change
Expand Up @@ -1760,6 +1760,7 @@ LocalErrorHandler:
lblSerialNumber.Enabled = True
txtSerialNumber.Enabled = True
txtSerialNumber.BackColor = System.Drawing.Color.White
InitSerialInput()

'change the active test name to nothing
staDescriptions.Panels(iCURRENTTESTNAME).Text = txslFormatString1(LangLookup(modLocalization.txslLangIndex.gnTest1Param), "")
Expand Down Expand Up @@ -2260,6 +2261,12 @@ LocalErrorHandler:
thread.Start()
End Sub

Private Sub InitSerialInput()
' Set focus to the input box and clear it
txtSerialNumber.Focus()
txtSerialNumber.Text = ""
End Sub

Private Sub BackgroundThread()
Dim client As New TcpClient()

Expand Down

0 comments on commit b1d25f0

Please sign in to comment.