Put this inside your Form class:
--<code>------------------------------------
protected override bool ProcessDialogKe y(Keys keyData)
{
switch (keyData)
{
case (Keys.Control | Keys.F4):
MessageBox.Show ("You pressed Crtl-F4");
return true; // Tell the caller that the key has been handled
case (Keys.Control | Keys.F1):
MessageBox.Show ("You pressed Crtl-F1");
return true;
};
// If the key hasn't been used by you then pass it to the base class
return base.ProcessDia logKey(keyData) ;
}
--<end code>------------------------------------
More reading here:
http://www.ondotnet.com/pub/a/dotnet...4/29/keys.html
regards, Teis
"karunakar" <ka***********@ stcroixsystems. com> wrote in message
news:%2******** **********@TK2M SFTNGP10.phx.gb l...
Hi all
Just i want capture the with "Ctrl" (Key bord function) + any F1 or F4
In windows application How can capture the event in C# .net
Regards,
Venu