How to open another application or scanner?

R

RB

Our VS 08 CF app in VB can respond to a hardware button by opening a message
box.
=====================
Select Case CType(e.KeyCode, HardwareKeys)

Case HardwareKeys.ApplicationKey1

MsgBox("Button 1 pressed.")

Case HardwareKeys.ApplicationKey2

MsgBox("Button 2 pressed.")

End Select

============================

What code can be used to call "\Program Files\Socket\SocketScan
Software\ScktScan.exe" instead of the message box?

Thanks in advance!
 
P

Paul G. Tobey [eMVP]

You want to call the native function CreateProcess(). OpenNETCF's Smart
Device Framework has this ability and I'm sure that, if you search the
archives, you'll find the P/Invoke declaration for CreateProcess() in some
previous message...

Start here:

http://groups.google.com/advanced_search?q=&

You want to search only this group, so enter the group name,
microsoft.public.dotnet.framework.compactframework. Enter suitable search
words (like "CreateProcess" and "Vb.net", maybe).

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top