display control

  • Thread starter Thread starter Reny J Joseph Thuthikattu
  • Start date Start date
R

Reny J Joseph Thuthikattu

Hi,
I am reading the data which is coming from the serail port using my
program.While displaying it i am facing some problem like whether to use
text box or some thing else.
I want to display the arrived string in the window as it come .I want to
move the previously arrived data which is there in the screen to down and
fresh data to top.
If i use textbox , there is a limitation in the display(maximum number of
text which we can display) , and how do i make sure that the arrived data
will be there in the top , or any other control which i can use for the
same?

Reny
 
Hi Reny,

Do you mean something as roughly typed?
\\\
me.textbox.text = newtext & me.textbox.text.substring(maxlength -
newtext.length)
///
Cor
 
* "Reny J Joseph Thuthikattu said:
I am reading the data which is coming from the serail port using my
program.While displaying it i am facing some problem like whether to use
text box or some thing else.
I want to display the arrived string in the window as it come .I want to
move the previously arrived data which is there in the screen to down and
fresh data to top.
If i use textbox , there is a limitation in the display(maximum number of
text which we can display) , and how do i make sure that the arrived data
will be there in the top , or any other control which i can use for the
same?

A RichTextBox won't have this limitation, but notice that it doesn't
make sense to load hundreds of megabytes of data into the control. I
would only display the last n lines. You can move the selection to
position 0 and then set the 'SelectedText' property.
 
Back
Top