Private Sub RichTextBox1_TextChanged(sender As Object, e As EventArgs) Handles RichTextBox1.TextChanged
Dim a As String = RichTextBox1.Text
If IndexOutOfRangeException(a) > 0 Then
MessageBox.Show("Error ข้อมูลซ้ำ")
Else
WriteLine(RichTextBox1.Text)
End If
End Sub