Re: Form_Keypress event not happening?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jan Hyde (StellaDrinker_at_REMOVE.ME.uboot.com)
Date: 11/24/04


Date: Wed, 24 Nov 2004 17:07:46 +0000


"U-CDK_CHARLES\\Charles" <"Charles Krug"@aol.com>'s wild
thoughts were released on Wed, 24 Nov 2004 16:09:16 GMT
bearing the following fruit:

>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.
>
>The form is displayed modally.
>
>What sorts of things should I be looking for? Do I need to attach a
>KeyPress event to all of my controls to do this?
>

I'll bet that the products that support Ctrl+P have a menu
item with this key combination mapped to it?

Jan Hyde (VB MVP)

-- 
We got divorced because of illness; 
We got sick of each other.   (Henny Youngman) 
[Abolish the TV License - http://www.tvlicensing.biz/]


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). ... Is the forms KeyPreview property set to True? ...
    (microsoft.public.vb.general.discussion)
  • Re: capture keystroke before display in textbox
    ... as to the question why i wanted to display the keystroke in MessageBox... ... seems like it always display the same KeyValue. ... i tried KeyValue and KeyCode in KeyPress event but those seem to display ...
    (microsoft.public.dotnet.languages.csharp)
  • 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)