1
Private Sub RichTextView_TextChanged(ByVal sender As Object, ByVal e As
KeyPressEventArgs) Handles RichTextView.KeyPress, RichTextView.TextChanged
Dim c As Char = e.KeyChar
Dim i As Integer = Asc(c)
Dim h As Char = Chr(i)
capitalise_first_letter.Add(h)
End Sub
KeyPressEventArg 수 : Unable to cast object of type 'System.EventArgs' to type 'System.Windows.Forms.KeyPressEventArgs'.
그것은 capitalise_first_letter.Add(h)
에서 오류를 (capitalise_first_letter은 문자열의 목록입니다)가 발생합니다.변수는 위의 코드는 오류가 발생
왜? h는 e.KeyChar이므로 변환을 수행합니까?
와우. 감사! –