G
Guest
Hi All,
I am playing around with the message interception using the following code...
private bool MsgHandler(Message m)
{
if (m.Msg == WM_KEYDOWN)
{
Keys k = (Keys)m.WParam.ToInt32();
switch(k)
{
case Keys.E:
return true;
}
}
return false;
}
THe problem is that the k value is always the same and I cannot find the key
value.
Anyone suggest what I am doing wrong?
Cheers,
James
I am playing around with the message interception using the following code...
private bool MsgHandler(Message m)
{
if (m.Msg == WM_KEYDOWN)
{
Keys k = (Keys)m.WParam.ToInt32();
switch(k)
{
case Keys.E:
return true;
}
}
return false;
}
THe problem is that the k value is always the same and I cannot find the key
value.
Anyone suggest what I am doing wrong?
Cheers,
James