flam79
asked on
Content receiving window
does anyone know the best way to create a richTextbox (doesn't have to be a richtextbox) to receive large amounts of data line by line?
Ideally it will slowly scroll up pand it reads data in on the bottom..
I've used
richTextBox1.Select(this.r ichTextBox 1.Text.Len gth, 0);
richTextBox1.SelectedText = i.ToString();
but it keeps sounding my windows "error" or "Default beep" sound...
please help, no one seems to know why.
Ideally it will slowly scroll up pand it reads data in on the bottom..
I've used
richTextBox1.Select(this.r
richTextBox1.SelectedText = i.ToString();
but it keeps sounding my windows "error" or "Default beep" sound...
please help, no one seems to know why.
ASKER
I figured out that it's because it's trying to change content in a "ReadOnly" box that is causing the beep.
Is there a work around, I do want to keep the field readonly.
Is there a work around, I do want to keep the field readonly.
How have you made it readonly?
ASKER
made the richtextbox read only.
just richTextBox1.readonly = true;
so what happens is if you try to press a key in the box, it beeps.
so when you append to it using the method .selectedText = i; it causes it to beep.
just richTextBox1.readonly = true;
so what happens is if you try to press a key in the box, it beeps.
so when you append to it using the method .selectedText = i; it causes it to beep.
Just make it non-read-only. Draw a label on top of the textbox, and set label text to nothing. Make sure label covers the textbox completely, and its Z factor is higher than the textbox (renders on top).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
richTextBox1.SelectionStar
richTextBox1.SelectionLeng
richTextBox1.SelectedText = i.ToString();