VB.NET - Detecting control key in form.resize event

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MickT
    New Member
    • Feb 2007
    • 28

    #1

    VB.NET - Detecting control key in form.resize event

    I am trying to detect whether or not the control key is pressed whilsr resizing a form by dragging the right side or bottom of the form with the mouse.

    The purpose is to exit the resize event if the CTRL key is pressed so that code in the event is not executed.

    I have tried form.keydown to set a boolean if the CTRL key is pressed but that doesn't work.

    I can't find a mouse event that detects a "qualifier" key.

    Can anyone offer me some help, please?
Working...