How to open another application or scanner?

  • Thread starter Thread starter RB
  • Start date Start date
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!
 
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.
 
Back
Top