|
-
Jun 10th, 2003, 04:06 PM
#1
Thread Starter
Hyperactive Member
Disable TextBox without Scrollbars?
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?
-
Jun 10th, 2003, 04:16 PM
#2
Fanatic Member
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
"Look! Up in the sky! It's a bird! It's a plane! It's Diaper-Head Boy! (there by my name!) Yes, Diaper-Head Boy, who disguised as my son, Seth, fights a never-ending battle for truth, justice and terrorizing my house!
Resistance is futile, you will be compiled . . . Please!
-
Jun 10th, 2003, 04:26 PM
#3
Thread Starter
Hyperactive Member
Wow, I didnt know about that...:?
-
Jun 11th, 2003, 06:37 AM
#4
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
Has someone helped you? Then you can Rate their helpful post. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|