Solved

how to create array of richtextbox in vb.net

Posted on 2007-11-30
4
912 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

713 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