|
-
Jul 23rd, 2003, 07:24 PM
#1
Rich Text Box's String Array
Using the properties window, you can edit the text within a text box using a string array. My question is... when the program is executed, is the data still stored in a string[]array? If so, how could I access that with code?
Since each line is just another number in the array, it would be so easy to do many things I need to do.
Thanks. BTW, sorry about the number of posts I've made, lol this is like my 3rd today and I got like 4 or 5 on the first page
-
Jul 23rd, 2003, 07:42 PM
#2
the string array is basically a collection of the lines , you can return a line by it's numer , eg:
VB Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim x As Integer
For x = RichTextBox1.Lines.GetLowerBound(0) To RichTextBox1.Lines.GetUpperBound(0)
MessageBox.Show(RichTextBox1.Lines(x))
Next
End Sub
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|