Need to start an external application using VB.net & CF
Posted on 2006-11-14
I either need to be able to send VK_OFF to the keyboard or I need to be able to start and external application using VB.net w/ CF. Since I have not a clue how do send a vertual key and I have a utility the suspends the device I figured it would be easy to shell out and run the utility. This however has not turned out to be so easy.
First I tried
If File.Exists(strFile) Then
intRslt = Shell(strFile,AppWinStyle.NormalFocus, True, -1)
This oddly enough generated a File Not Found Error even after passing the file.exist command.
Next I tried the following getting with the same result
Both work wonderfully in the .NET Framework. Not so well in the CF.