Inherits Windows.Forms.RichTextBox vb.net 2008
===

iam writing my first custom control in vb.net 2008. i want to add a keyboard to a richtextbox. all is well else iam did not able to get the name of my custom control to enter the text in it. for example

     Private Sub btna_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btna.Click
            If CheckBox1.Checked = True Then
                rtb.SelectedText = AsciiToUrdu(65)
            Else
                rtb.SelectedText = AsciiToUrdu(97)
            End If
        End Sub

only problem is to find the control name to enter the text in it. and sorry for my poor English. 