I just created 5 Rich text boxes in runtime through a subroutine as:
Dim c As Control c = New RichTextBox() With c .Name = "VersesRTB" & VerseCount .Location = New Point(70, y) .Height = 100 .Width = 580 .Font = New Font("Microsoft Sans Serif", 12) End With
It successfully created my required number of text boxes. I was enjoying until I found that during typing, when I press Enter Key, the cursor doesnot seem to go to next line, rather it continues in the same line. However wrapping occurs (ie) when I finish the like till the end, the cursor automatically goes to next line. But how can I go to next line in the middle? Do i want to fill the spaces till the end by pressing spacebar? It seemed weird.
Also, I cannot paste the clipborad contents on to those Rich text boxes just by pressing ctrl+v. I have to write this code to paste them on to it:
I would be grateful if my problem is solved. Thanks!