omnialive
Registered User.
- Local time
- Today, 05:21
- Joined
- Sep 17, 2010
- Messages
- 23
What I have is a form, ProcessStatusWindow, that has a text box, status, with vertical scrollbar enabled. As my application does its work, it puts updates to the status text box using this method:
I call updateStatus("status updates") in my code and the update is done fine. As you can see, it is currently putting the latest update at the top of the text box value. I want to know how to move the scroll bar, after this type of update, to the bottom most text so that I can put the text in the proper chronological order instead of how it is now.
Essentially as new text is added to the box I want it to automatically scroll down with the new additions. Any ideas? I've searched around and can't find anything for VBA. Found something for VB6.
Any help is appreciated.
Code:
Global statusfrm As [Form_Process Status Dialog]
Set statusfrm = New [Form_Process Status Dialog]
Public Sub updateStatus(strStatUpdate As String)
statusfrm.status.Value = strStatUpdate & vbCrLf & statusfrm.status.Value
End Sub
I call updateStatus("status updates") in my code and the update is done fine. As you can see, it is currently putting the latest update at the top of the text box value. I want to know how to move the scroll bar, after this type of update, to the bottom most text so that I can put the text in the proper chronological order instead of how it is now.
Essentially as new text is added to the box I want it to automatically scroll down with the new additions. Any ideas? I've searched around and can't find anything for VBA. Found something for VB6.
Any help is appreciated.