I have desktop Application with many controls. one of the controls is a button for printing...it works fine, it prints a selected area of the form. I want to remove the print button and run the existing print code by pressing Control + p.
I should have explained that the print button and code are on a large user control with many controls on it and as you pointed out there is a problem with controls on containers on containers...Form >>TabControl >> TabPage >> User Control.
The answers were helpful but the big point was what you said.
Private Sub PKey_KeyDown(sender As Object, e As KeyEventArgs) Handles MyBase.KeyDown
If e.Control And e.KeyCode = Keys.P Then
MsgBox("This works fine...Ctrl + P were pressed")
End If
End Sub
Using the code above works on a simple two or three control app but as of now when I press Ctrl + P on my many controls app, nothing happens.