title: When a key on the keybaord is pressed in vb.net to load a form
body: <p>Recently i created a form and i want when the user presses f8 to load the private sub. i ve tried different methods but after the user enters data on the texboxes the function is not working
  Here is some code :</p>
  
  <pre><code>  If e.KeyCode = Keys.F8 Then
           vnesiartikal()
      End If
  </code></pre>
  
  <p>The vnesiartikal() is used to enter a product in the database but if the button insert is selected the f8 opiton works but when the user insets the data in the textboxes the function is not working</p>