Is there a way to trigger an event when the frame of a windows form has been clicked? I am able to trigger a click event when the user clicks anywhere on the form but it does not work if the user clicks on the form's frame ( this is the section where the Minimize, Maximize, and the Close controls are located) see attached screen shot.
Is there a way to trigger an event when the frame of a windows form has been clicked? I am able to trigger a click event when the user clicks anywhere on the form but it does not work if the user clicks on the form's frame ( this is the section where the Minimize, Maximize, and the Close controls are located) see attached screen shot.
I don't know if this is what you need but, In KeyDown you put:
method-id Form1_KeyDown final private.
procedure division using by value sender as object e as type System.Windows.Forms.KeyEventArgs.
if e::KeyCode = type Keys::Escape
invoke self::Close()
end-if.
*>
*>declare st as string = e::KeyCode
*> invoke type MessageBox::Show(st)
*>
end method.
Google translation
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.