Hi,
i have added a textbox programatically and added a handler to the keypress event.
when the keypress fires, i am looking for e.KeyChar but it doesn't exists.
can someone please assist?
my code:
private sub test ()
dim mySearchBox as textbox
me.Controls.Add(mySearchBox)
AddHandler
mySearchBox.KeyPress, AddressOf mySearchBox_KeyPress
end sub
Protected Sub mySearchBox_KeyPress(ByVal sender As Object, ByVal e As EventArgs)
msgbox asc(e.KeyChar)
end sub
erez