How change value from keypress_event ?

P

PocketPC

Hi,

How can I change the value of a key in the keypress event ?

Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress

if e.keychar=chr(13) then ....[??????????]-> value to change

End Sub

Thanks in advance
 
G

Guest

KeyChar is readonly meaning it only has a Get implemented. You can set the Handled property to true and put the appropriate character in the textbox via code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top