keypreview - how to set

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dragonjim
    New Member
    • Jul 2008
    • 5

    keypreview - how to set

    In vb.net, if I want to detect a keypress, I must first set keypreview to true on the form. In VB6, it was pretty simple, but in vb.net, I can't find where keypreview gets set. How do I do it?
  • joedeene
    Contributor
    • Jul 2008
    • 579

    #2
    that is superbly easy, im sorry that is way to easy, have you tried typing in "keypreview " ? or maybe its my version of .net what are you using, im using VB 2008, you could just type in Me.KeyPreview = true in the form load event sub ?

    Comment

    Working...