Home All Groups Group Topic Archive Search About

Multiple user textbox updates (real-time)

Author
13 Mar 2009 1:07 AM
Cappy
Is it possible to update textbox text from 2 or more users (seamlessly)? If
needed, can anyone recommend a good starting point for writing a custom
control that can do this? I tried using setScrollPosition after updating my
text but the text doesn't seem to scroll (only the bar moves).  I'd like to
maintain the position of the scrollbar while peer-edited text is added or
removed. It would be really nice to avoid flicker and or any indication that
text was added or removed while using the editor. How would you get started
building a control like this?

Thank you

Author
13 Mar 2009 1:12 PM
Larry Serflaten
"Cappy" <anonym***@notadomain.com> wrote
> Is it possible to update textbox text from 2 or more users (seamlessly)? If
> needed, can anyone recommend a good starting point for writing a custom
> control that can do this? I tried using setScrollPosition after updating my
> text but the text doesn't seem to scroll (only the bar moves).  I'd like to
> maintain the position of the scrollbar while peer-edited text is added or
> removed. It would be really nice to avoid flicker and or any indication that
> text was added or removed while using the editor. How would you get started
> building a control like this?


I'd start by building a text based line editor.  In other words, a control that
accepts user input (keys and mouse) that edits a single line of text.

That would be the start of a custom text editor.  A single user can only
edit one line at a time, so wraping that up in a control allows for one or
more of them on the form.

The next task would be to display what the user has entered, so that the
user can scroll up and down through the entered text.  Then load and
save functions, et al....

I'd say it has to be custom made because even if you could keep the
VB Textbox set to where the local user is at, editing text above that
will (could possibly) change the word wrap, or text size such that the
effects would be noticed where the local user is at.  That could be a
bit distracting.

About the only way to avoid that is to gain complete control over
how the text is displayed, and edited.  Thus, the need for customizing
the process.

LFS