KeyPress
のフォーカスを変更するために Eventを使用しましたTextBox
。オプションを使用するまでAutoComplete
は問題なく動作しますが、その後は動作しません。
のコードKeyPress
:
If Asc(e.KeyChar) = 13 Then
txtQuantity.Focus()
txtQuantity.SelectAll()
lastTxtBox = "name"
End If
のコードTextBox
:
txtProductCode.AutoCompleteMode = AutoCompleteMode.Suggest
txtProductCode.AutoCompleteSource = AutoCompleteSource.CustomSource
両方の提案オプションを使用したい。キープレスをkeyDownに変更してみましたが、それでも機能しません。誰にも理由はありますか?