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 */
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

100 Labels 4
Autosize + Datagrid 1
IP 1
Running Program 8
Query Timeout 3
TextBox 2
DataGrid Collumn/Cell Color 1
DataGrid 2 1

Back
Top