hi all
does anybody knows how can i prevent editing text box with the original (black & white) colors of the textbox. if i set the textbox to disable = true then its become unreadeble gray backround and text!???//
thnks for all the replyers
Printable View
hi all
does anybody knows how can i prevent editing text box with the original (black & white) colors of the textbox. if i set the textbox to disable = true then its become unreadeble gray backround and text!???//
thnks for all the replyers
ummm , I've another solution .
in the keypress event paste this code :
This prevent editing your text . It does the job anyways !VB Code:
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress e.Handled = True End Sub
Locked property
Sorry Lethal , that would prevent moving the textbox in design time .:DQuote:
Originally posted by Lethal
Locked property
Set Read Only to True.
Read-Only is what I meant. I was thinking VB 6