Advertisement
2002VB Custom Controls/ Forms/ Menus #17777

!Make the textbox Locked for inputs and NOT grey!

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!

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
'// 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.
Original Comments (3)
Recovered from Wayback Machine