Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to scroll editbox as contents overflow
Message
 
To
03/07/2008 21:01:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01328923
Message ID:
01328928
Views:
16
>A form's button's click runs a long process. As it does, it updates a string that is shown to user via an editbox. This works fine except when the editbox is full and needs to scroll to show the latest addition.
>
>What is the best way to scroll edit box as needed to show the latest addition at all times?
>
>TIA,
>
>Alex


Alex,

Set the .SelStart property to the len of the value, in other words
this.SelStart = len(this.value)
[Update]
By the way, I used to use an editbox as you, but then I changed to a grid, for then I can display the messages in different colors without many complications
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform