PreProcessMessage is used for keyboard or input messages before they are
dispatched. This is used for things like accelerator keys and the like, not
for mouse clicks.
You should override WndProc if you want to process this message.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Just close your eyes and see"
<Ju*********************@discussions.microsoft.com wrote in message
news:69**********************************@microsof t.com...
Hi All
i am trying to override the PreProcessMessage for the form
and i am using this code
public override bool PreProcessMessage(ref Message msg)
{
switch (msg.Msg)
{
case WM_RBUTTONDOWN: return true;
default: return base.PreProcessMessage(ref msg);
}
}
but this code never been called
i am wondering, why ?