Gidi,
You will want to hook up to the KeyDown or the KeyUp event (depending on
which makes sense to you). In that event, you can check the KeyCode
property of the KeyEventArgs instance passed into the event to see if the
value contains Keys.F3 (it is a bitmask, so more than one value can be
specified).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Gidi" <sh*****@hotmail.com> wrote in message
news:DF**********************************@microsof t.com...
hello,
i writing a windows application in C#. i have a text box and i want to
catch the F3 keypreess event. how can i do it? what is the currect syntax?
and how can i catch it when the foucus is on the dataGrid???
thank you alll