Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load TextBox1.Enabled = False Me.KeyPreview = True TextBox1.CharacterCasing = CharacterCasing.Upper End Sub Private Sub Form2_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress TextBox1.AppendText(e.KeyChar.ToString) End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question