• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1001
  • Last Modified:

how to create array of richtextbox in vb.net

Hi,
how to create array of richtextbox in vb.net
Regards.
0
anusdesai
Asked:
anusdesai
  • 2
  • 2
1 Solution
 
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
 
surajgupthaCommented:

        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
 
anusdesaiAuthor Commented:
Ceers mate
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now