hi everyone,
i use this code in VB for not to type anything in the TextBox on keypress event
how this code can be changed in VB.Net ?Code:KeyAscii = 0
i tried
but does not workCode:e.KeyChar = 0
Printable View
hi everyone,
i use this code in VB for not to type anything in the TextBox on keypress event
how this code can be changed in VB.Net ?Code:KeyAscii = 0
i tried
but does not workCode:e.KeyChar = 0
You could use e.Handled = True
Dot net uses the actual character rather than the numeric code for the character.Quote:
Originally Posted by chunks
Code:e.keychar=chr(0)