Solved

how to create array of richtextbox in vb.net

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
coded character set iptc field within a jpeg 1 70
Name space syntax error 12 43
Error on Add method 1 38
I need help converting a bitmap to an image in VB.Net 1 14
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.   …
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now