Chris,
Keydown always fires before keypress. It is that simple.
To get a keypress, you need a full cycle of keydown and keyup.
Matt
----- Original Message -----
From: "HouseDad" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, February 21, 2005 12:19 AM
Subject: [vbhelp] Re: Debugger Blues
>
>
> --- In [email protected], "Shawn K. Hall" <[EMAIL PROTECTED]> wrote:
>
> > What code do you want to execute? Is it a sub or function unreliant
> > on form state, which you are trying to use to encapsulate your logic
> > (preferred)?
>
> Long story short, my verbose reply got wiped out, good for you,
> here's what's left... Form_Keypress usually fires when Enter is
> pressed. Keypreview=True. When I've pressed break, then step-into,
> then pressed Enter, the form-Keydown routine fires instead. I
> usually use breakpoints, but since no events were running I just
> pressed break at the point I needed to step back into. I just wanted
> to try to understand why Keydown was firing instead of Keypress.
> It's just odd to me. Not a big deal, I'll just use breakpoints on it
> when I go back to work if I need to.
>
> My main question I need to ask now is, Is there anything wrong
> with re-installing Visual Studio 6.0 on top of the current
> installation? I think some of my problems might have been caused
> when the servers were changed and my settings on my work machine got
> changed. I noticed the Package and Deployment Wizard was no longer
> in the Add-Ins menus in VB, along with a lot of other stuff that used
> to be there, but it executed from Window's Start menu. I think when
> they changed my settings on my machine they just tried to copy the
> menu links or something, which could explain why I am having new
> problems perhaps due to VB not finding stuff where it thinks
> appropriate.
>
> [C]
>
>
>
>
>
>
>
> '// =======================================================
> Rules : http://ReliableAnswers.com/List/Rules.asp
> Home : http://groups.yahoo.com/group/vbHelp/
> =======================================================
> Post : [email protected]
> Join : [EMAIL PROTECTED]
> Leave : [EMAIL PROTECTED]
> '// =======================================================
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14-Feb-2005
>
>
--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14-Feb-2005
'// =======================================================
Rules : http://ReliableAnswers.com/List/Rules.asp
Home : http://groups.yahoo.com/group/vbHelp/
=======================================================
Post : [email protected]
Join : [EMAIL PROTECTED]
Leave : [EMAIL PROTECTED]
'// =======================================================
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/vbhelp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/