|
-
Mar 3rd, 2003, 06:21 AM
#1
Thread Starter
Addicted Member
prevent editing textboxes
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
-
Mar 3rd, 2003, 10:05 AM
#2
Sleep mode
ummm , I've another solution .
in the keypress event paste this code :
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
This prevent editing your text . It does the job anyways !
-
Mar 3rd, 2003, 10:26 AM
#3
PowerPoster
-
Mar 3rd, 2003, 10:31 AM
#4
Sleep mode
Originally posted by Lethal
Locked property
Sorry Lethal , that would prevent moving the textbox in design time .
-
Mar 3rd, 2003, 10:57 AM
#5
-
Mar 3rd, 2003, 03:39 PM
#6
PowerPoster
Read-Only is what I meant. I was thinking VB 6
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
|