Reply to thread

Lock is designer only property.

Are you trying to block the user from entering some particular character or any? If any then setting the DropDownStyle to DropDownList would do it. What PlausiblyDump showed you works. Look at this example:

[code=vb]

If e.KeyChar = Convert.ToChar(97) Then

  e.Handled = True

End If

[/code]


Back
Top