SP2: Keypress event changes

  • Thread starter Thread starter Chris Theorin
  • Start date Start date
C

Chris Theorin

Yeah, what the heck is up with tabbing through controls in SP2.

We implemented tabbing between TextBoxes via their OnKeyPress events and
this gets all confused with SP2, so I just tried using the "built in"
tabbing functionality and it tabs amongst ALL controls... how can we stop
the tabbing to some controls (like Buttons)?
 
Hi Chris,

Unfortunately there isn't a straight-forward way to turn off tabbing (we
couldn't add new APIs for a service pack). There are a couple of things
you can do to work around this though.

1. As you noticed, key events are not fired when keys are pre-processed
(such as when another control is tabbed to). You can, however, use the
keyup event (keep in mind this will happen for the newly focused control).
We were able to expand support for key events to all controls, so in your
case you may be able to programmitically set focus to another textbox when
your buttons receive the key-up event of tab or arrow keys.

2. For general display custom controls and built in controls that you
don't want users interacting with at all, you can disable them to turn off
tabbing to them. (Some controls, such as labels, are considered not
tabable by default).

3. We have a known bug where we don't tab to child controls of custom
controls properly. This shouldn't be relyed upon, since it will most
likely be fixed in our next version, but our next version will also have
new APIs allowing you to turn off tabbing.

Hope this helps,
-Katie

This posting is provided "AS IS" with no warranties, and confers no rights.

***.Net Compact Framework Info***
Faq:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
spx
QuickStarts: http://samples.gotdotnet.com/quickstart/CompactFramework/
Samples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/CompactfxTechArt.asp

--------------------
| From: "Chris Theorin" <[email protected]>
| Subject: SP2: Keypress event changes
| Date: Mon, 29 Dec 2003 13:29:55 -0600
| Lines: 18
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: outbound.epicsys.com 12.148.194.126
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.
phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:41815
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Yeah, what the heck is up with tabbing through controls in SP2.
|
| We implemented tabbing between TextBoxes via their OnKeyPress events and
| this gets all confused with SP2, so I just tried using the "built in"
| tabbing functionality and it tabs amongst ALL controls... how can we stop
| the tabbing to some controls (like Buttons)?
|
| >After installing SP2, I no longer see any control keys in the
| >TextBox's keypress event handler. They do still appear in the KeyUp
| >event. Was this intentional or an inadvertent change?
| >
| >--Houston
|
| --
| Chris Theorin
| http://slurptheo.com
|
|
|
 
Back
Top