【VB】入力時に小文字を大文字に変換する
Private Sub Text1_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) >= "a" And Chr(KeyAscii) <= "z" Then KeyAscii = Asc(StrConv(Chr(KeyAscii), vbUpperCase)) End If End Sub