C# - detectar duas teclas ao mesmo tempo
06/11/2010
0
if(e.KeyData == Keys.Up) { Point x = pictureBox1.Location; pictureBox1.Location = new Point(pictureBox1.Location.X ,pictureBox1.Location.Y -2); } [CODE] já isso não:[CODE]void MainFormPreviewKeyDown(object sender, PreviewKeyDownEventArgs e) { if(e.KeyData == Keys.Right && e.KeyData == Keys.Up) { Point x = pictureBox1.Location; pictureBox1.Location = new Point(pictureBox1.Location.X +2,pictureBox1.Location.Y-2); }
Pedro Rafael
Posts
15/11/2010
Altieri Pereira
Verifique o exemplo: http://proto.layer51.com/d.aspx?f=1435 e veja se ajuda.
;) até mais.
17/11/2010
Vinicius Vieira
16/03/2011
Alejandro González
Clique aqui para fazer login e interagir na Comunidade :)