Hello everybody
Is possible to scroll text in TextBox component in case that it's disabled. I want to have disabled textbox and not noeditable.
Does exist some option ?
Thanks
Printable View
Hello everybody
Is possible to scroll text in TextBox component in case that it's disabled. I want to have disabled textbox and not noeditable.
Does exist some option ?
Thanks
Here are few samples for lyou:
How To Scroll VB Text Box Programmatically and Specify Lines
Programmatically Scroll a Text Box Vertically
Hope it works for you.
You can't scroll a disabled textbox if that is the question.
Try this with the textbox enabled.
Code:Option Explicit
Private mstrSave As String
Dim mbLoading As Boolean
Private Sub Form_Load()
mbLoading = True
Text1.Text = "now is the time for all good men to come to the aid of their party"
mstrSave = Text1.Text
mbLoading = False
End Sub
Private Sub Text1_Change()
If Not mbLoading Then
Text1.Text = mstrSave
End If
End Sub
Why not just set the LOCKED property to True (and leave Enabled True as well). That way the user can scroll, but will not be able to enter anything into the box.
Oh sure, do it the easy way:)Quote:
Originally Posted by BruceG
Make the Texbox Enabled property to True and Locked Property to True. So that the user can view, scroll, but they can't make changes to the Text in the Textbox Control.
@amani74: you need to read the entire thread - not just original question so you won't be dbl posting the same answer. ;)
Post#5 by BruceG:
... and 7+ hours later :) post #7 by you:Quote:
Originally Posted by BruceG
Quote:
Originally Posted by amani74