Hi every one
i want to create a program that do work of Alt,Ctrl,F1,... .
for example out put of this code in notepad

<Tab> mehdiali is a good boy <enter>
<Tab><Tab> mehdiali really is a good boy
will be :
mehdiali is a good boy
mehdiali really is a good boy
i found a good one in codeproject.com

http://www.codeproject.com/KB/dialog/keystroke.aspx

thank you in advance

this is my answer :
[DllImport("user32")]
static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);
const byte VK_TAB= 0x09;

keybd_event(VK_TAB,0x8f,0 , 0); // Tab Press
keybd_event(VK_TAB,0x8f, KEYEVENTF_KEYUP,0); // Tab Release