Hey,
How can I disable a textbox, not indluding scrollbars?
Or in other words, not allow the user to change the text, but allow him to scroll the textbox.
How do I do that?
Printable View
Hey,
How can I disable a textbox, not indluding scrollbars?
Or in other words, not allow the user to change the text, but allow him to scroll the textbox.
How do I do that?
just lock it! (don't disable it)
VB Code:
Private Sub Form_Load() Text1.Text = "Hey, How can I disable a textbox, not indluding scrollbars? " Text1.Text = Text1.Text & vbCrLf & "Or in other words, not allow the user to change the " Text1.Text = Text1.Text & vbCrLf & "text, but allow him to scroll the textbox. " Text1.Text = Text1.Text & vbCrLf & "How do I do that" Text1.Locked = True End Sub
Wow, I didnt know about that...:?
Even if it is locked you can still change the text but through code, so it is up to you. For example :
VB Code:
Private Sub Form_Click() Text1.Text = "test" End Sub Private Sub Form_Load() Text1.Locked = True End Sub