Solved

how to create array of richtextbox in vb.net

Posted on 2007-11-30
4
901 Views
Last Modified: 2013-11-26
Hi,
how to create array of richtextbox in vb.net
Regards.
0
Comment
Question by:anusdesai
  • 2
  • 2
4 Comments
 
LVL 21

Expert Comment

by:surajguptha
ID: 20381756
Have a for loop where you create a new richtextbox and then add it to the
this.Controls.Add(richtexttbox)
0
 

Author Comment

by:anusdesai
ID: 20382600
Can you give me a code sample
0
 
LVL 21

Accepted Solution

by:
surajguptha earned 500 total points
ID: 20382891

        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
 

Author Comment

by:anusdesai
ID: 20387755
Ceers mate
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question