wyjdzie wyjdzie, w c# mamy dostępne messagefilter
w związku z tym że to może być troche trudne podam gotowy kod
public class BlockLeftMouseButtonMessageFilter : IMessageFilter
{
const int WM_LBUTTONDOWN = 0x201;
const int WM_LBUTTONUP = 0x202;
public bool PreFilterMessage(ref Message m)
{
if (m.Msg == WM_LBUTTONDOWN)
{
return true;
}
if (m.Msg == WM_LBUTTONUP)
{
return true;
}
return false;
}
}
[STAThread]
static void Main()
{
BlockLeftMouseButtonMessageFilter msgFilter = new BlockLeftMouseButtonMessageFilter();
Application.AddMessageFilter(msgFilter);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}