how to create array of richtextbox in vb.net

Hi,
how to create array of richtextbox in vb.net
Regards.
anusdesaiAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
surajgupthaConnect With a Mentor Commented:

        For index As Integer = 1 To 10
            Dim RichTextBox1 As New System.Windows.Forms.RichTextBox
            RichTextBox1.Name = "RichTextBox1" + index.ToString()
            RichTextBox1.Location = New Point(index * 50, index * 100)
            Controls.Add(RichTextBox1)
        Next

Open in new window

0
 
surajgupthaCommented:
Have a for loop where you create a new richtextbox and then add it to the
this.Controls.Add(richtexttbox)
0
 
anusdesaiAuthor Commented:
Can you give me a code sample
0
 
anusdesaiAuthor Commented:
Ceers mate
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.