Solved

how to create array of richtextbox in vb.net

Posted on 2007-11-30
4
941 Views
Last Modified: 2013-11-26
Hi,
how to create array of richtextbox in vb.net
Regards.
0
Comment
Question by:anusdesai
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

630 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