How capture down arrow key?

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

I have a text box. If the user hits the down arrow while in the text box I
want to process some code.

In the KeyPress event of the text box how do I capture the down arrow (I
assume Keys.Down)?

Thanks.
 
Hi VB programmer

This I did send some minutes ago on almost the same question

Private Sub textbox1_KeyUp(ByVal sender As Object, _
ByVal e As System.Windows.Forms.KeyEventArgs) Handles textbox1.KeyUp
If e.KeyCode = Keys.F1 Then

I would say try it yourself for the downarrow.

I hope this helps

Cor
 

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

Back
Top