VB icon

!Make the textbox Locked for inputs and NOT grey!

Email
Submitted on: 1/3/2015 12:14:00 AM
By: Martin Tonek (from psc cd)  
Level: Not Given
User Rating: By 60 Users
Compatibility: VB 5.0, VB 6.0
Views: 5721
 
     Let you lock your textbox for inputs and it will NOT be grey, but will be able to highlightning and scrolling. One line code is all you need!
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
'**************************************
' Name: !Make the textbox Locked for inputs and NOT grey!
' Description:Let you lock your textbox for inputs and it will NOT be grey, but will be able to highlightning and scrolling. One line code is all you need!
' By: Martin Tonek (from psc cd)
'
' Inputs:add a textbox named Text1.
Thats IT!!
'
' Returns:A textbox that you can highlight and scroll but not change
'
' Assumes:None, More simple then this it will never be!
well if you cant see all text.. just change multiline to true in textbox
properties. But that you already now!! ;-)
More sources avalible on http://hem.passagen.se/tonek/vb
'**************************************

'// Please visit my homepage http://hem.passagen.se/tonek/vb
'// and check out other sources i made..
'// Martin Tonek <tonek@hem.passagen.se>
Private Sub Form_Load()
'// This will lock the control so you cant make any changes
'// in runmode , false open it up.. default is false
Text1.Locked = True
Text1.Text = "you can scroll and highlight the text in the control" & _
" but you can't edit it. The program can still modify the text by " & _
"changing the Text property"
End Sub
'// I find it in the helpfile...so now you now how. Also want to add that
'// all people using the keyascii code.. this one is better...
'// neet little code free to use
'// Wonder why people is so upset. I just tell this one..
'// so a lot of people that do not use it when it is avalible may use it.


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Not Given category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.