Re: Form_Keypress event not happening?

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Ken Halter (Ken_Halter_at_Use_Sparingly_Hotmail.com)
Date: 11/24/04


Date: Wed, 24 Nov 2004 08:13:26 -0800


"U-CDK_CHARLES\Charles" <"Charles Krug"@aol.com> wrote in message
news:Mm2pd.4884$356.4863@trndny04...
> List:
>
> I'm trying to trap Ctrl P on my form with the usual Win32 behavior
> (display the print dialog).
>
> I put a stop in Form_Keypress, but the event never seems to occur.

Is the forms KeyPreview property set to True?

-- 
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups.. 


Relevant Pages

  • Re: Form_Keypress event not happening?
    ... >I'm trying to trap Ctrl P on my form with the usual Win32 behavior ... >(display the print dialog). ... >KeyPress event to all of my controls to do this? ...
    (microsoft.public.vb.general.discussion)
  • Form_Keypress event not happening?
    ... I'm trying to trap Ctrl P on my form with the usual Win32 behavior ... (display the print dialog). ... Charles ...
    (microsoft.public.vb.general.discussion)
  • Re: Form_Keypress event not happening?
    ... >> I'm trying to trap Ctrl P on my form with the usual Win32 behavior ... >> (display the print dialog). ... > Is the forms KeyPreview property set to True? ...
    (microsoft.public.vb.general.discussion)