poringgunner
Active member
- Joined
- Feb 23, 2014
- Messages
- 42
- Programming Experience
- Beginner
i have problems on how to use array..
i want to define an array of richtextbox regardless on the count.
here is my code.
i want the richtext variable increment by 1 on the loop
example richtext1 then after the loop it will be richtext2
i want to define an array of richtextbox regardless on the count.
here is my code.
if(tabControl1.TabPages.Count == browse.FileNames.Count()) { for (int i = 0; i < browse.FileNames.Count(); i++) { RichTextBox richtext = (RichTextBox)tabControl1.TabPages[i].Controls["richtext" + i.ToString()]; } if (richtext.Lines.Count() > richtext.Lines.Count()) //the error here is the richtext { sub = richtext.Lines.Count() - richtext.Lines.Count(); //and here also. } }
i want the richtext variable increment by 1 on the loop
example richtext1 then after the loop it will be richtext2
Last edited by a moderator: