Question : Command to trigger keyboard stroke  through coding in .Net compact Framework

Can anyone tell us the command (code) to trigger keyboard stroke through coding in .Net  Compact Framework,
something similar to sendkeys  in .Net Framework ( as sendkeys is not supported in .Net Compact Framework)

Answer : Command to trigger keyboard stroke  through coding in .Net compact Framework

Try this one

Using System.Runtime.InteropServices
        byte VK_KEY = 0x41; //"A" key in this instance
        const int KEYEVENTF_KEYUP = 0x2;
        const int KEYEVENTF_KEYDOWN = 0x0;
        keybd_event(VK_KEY, 0, KEYEVENTF_KEYDOWN, 0);//press tab
        keybd_event(VK_KEY, 0, KEYEVENTF_KEYUP, 0);//release tab
[DllImport("coredll.dll", SetLastError = true)]
static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);
Random Solutions  
 
programming4us programming4us