Key pressed

  • Thread starter Thread starter David de Passos
  • Start date Start date
D

David de Passos

How can I do in C#, to see if a key (Ctrl, Shift) or keys are pressed when a
resize a component?
In resize event of corse.

--


Cumprimentos,
David de Passos
--------------------------------------------------------------
RCSOFT, Lda.
E-Mail: (e-mail address removed)
Móvel: +351 966931639
Telefone: +351 239708708
Fax: +351 239708701
Tel. Directo: +351 239708705 ext. 401
 
use Control.ModifierKeys, for example
if(Control.ModifierKeys == Keys.Control)
{
/* whatever */
}
 
Back
Top