Senast redigerat
Visa signatur
Server: två Intel Xeon E5-2690v2 och 128 GB ram
Min server dator: #15149189 http://i.imgur.com/BKxOmUP.jpg
zxhosting: https://www.facebook.com/pages/Zxhosting/1476037889350815
Tjo,
Problemet som jag har är att ProcessCmdKey körs inte om application är i focus hur löser jag det?
Test Key
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.Down)
{
MessageBox.Show("test");
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
Edit: har löst det andra problemet.
Server: två Intel Xeon E5-2690v2 och 128 GB ram
Min server dator: #15149189 http://i.imgur.com/BKxOmUP.jpg
zxhosting: https://www.facebook.com/pages/Zxhosting/1476037889350815
Om du vill ha en hotkey som fungerar när programmet inte är i fokus ska du använda RegisterHotKey.
http://www.fluxbytes.com/csharp/how-to-register-a-global-hotk...
Copyright © 1999–2024 Geeks AB. Allt innehåll tillhör Geeks AB.
Citering är tillåten om källan anges.