PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Volume slider keys F6 && F7
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Volume slider keys F6 && F7
![]() |
Volume slider keys F6 && F7 |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
I'm developing an app for a Falcon psc with a keyboard and want to use the
function keys. The F6 and F7 key are apparently used for Volume up/down. Is there a way to change that so that I can trap these events in the Form OnKeyDown ? thanx. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hi,
You can send a message to the WndProc in order to simulate the keys F6 or F7 downed in your new key handler. See PostKeybdMessage or keybd_event. BR Fabien Decret Windows Embedded Consultant ADENEO (ADESET) http://www.adeneo.adetelgroup.com/ Mark Huisinga a écrit : > I'm developing an app for a Falcon psc with a keyboard and want to use the > function keys. > The F6 and F7 key are apparently used for Volume up/down. Is there a way to > change that so that I can trap these events in the Form OnKeyDown ? > > thanx. |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Hi,
I don't need to simulate these keys, they are on the actual device. But when I press F6 the volume up gets triggered and I don't receive the F6 key in my onKeyDown function. Is there no way of doing this other then resorting to P/invoke's ? I'd like to keep this in managed code. Mark "Fabien" <fab_00_2002@msn.com> schreef in bericht news:1157615289.936334.230830@p79g2000cwp.googlegroups.com... Hi, You can send a message to the WndProc in order to simulate the keys F6 or F7 downed in your new key handler. See PostKeybdMessage or keybd_event. BR Fabien Decret Windows Embedded Consultant ADENEO (ADESET) http://www.adeneo.adetelgroup.com/ Mark Huisinga a écrit : > I'm developing an app for a Falcon psc with a keyboard and want to use the > function keys. > The F6 and F7 key are apparently used for Volume up/down. Is there a way > to > change that so that I can trap these events in the Form OnKeyDown ? > > thanx. |
|
|
|
#4 |
|
Guest
Posts: n/a
|
P/Invoke is managed code. How do you think all of the MS code talks with
the Win32 API? For this specific problem you're probably going to have to ask the OEM, as it's probably grabbing the keys at a layer below your app. They likely have a mechanism to override or disable it. -- Chris Tacke OpenNETCF Consulting Managed Code in the Embedded World www.opennetcf.com -- "Mark Huisinga" <mhuisinga@newsgroups.nospam> wrote in message news:ilTLg.544912$8o6.119569@beryl... > Hi, > > I don't need to simulate these keys, they are on the actual device. But > when I press F6 the volume up gets triggered and I don't receive the F6 > key in my onKeyDown function. > Is there no way of doing this other then resorting to P/invoke's ? I'd > like to keep this in managed code. > > Mark > > > "Fabien" <fab_00_2002@msn.com> schreef in bericht > news:1157615289.936334.230830@p79g2000cwp.googlegroups.com... > Hi, > > You can send a message to the WndProc in order to simulate the keys F6 > or F7 downed in your new key handler. See PostKeybdMessage or > keybd_event. > > BR > > > Fabien Decret > Windows Embedded Consultant > > ADENEO (ADESET) > http://www.adeneo.adetelgroup.com/ > > > > Mark Huisinga a écrit : > >> I'm developing an app for a Falcon psc with a keyboard and want to use >> the >> function keys. >> The F6 and F7 key are apparently used for Volume up/down. Is there a way >> to >> change that so that I can trap these events in the Form OnKeyDown ? >> >> thanx. > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

