M
mrabie
Hi All,
I have a custom DLL assembly, that has a .Click event. I attach the
click even to an event handler
mycontrolClick += new EventHandler(OnClick);
void OnClick(object sender, EventArgs e)
{
MessageBox.Show("Clicked");
}
The problem is that the OnClick is never fired. I tried tracing the
Windows messages using SPY++ and i found the following message is sent
WM_PARENTNOTIFY fwEvent:WM_LBUTTONDOWN xPos:1190 yPos:173
and that the application received the message, but nothing happens.
I also tried capturing the WM_LBUTTONDOWN message in WndProc and still
if i click inside the control it never gets captured, but if i clicked
anywhere else on the form outside the control WndProc captures the
WM_LBUTTONDOWN
What can be the problem and if any help on how can i solve it i would
really appreciate it.
Looking forward to hearing from you
Thanks for your help in advance
I have a custom DLL assembly, that has a .Click event. I attach the
click even to an event handler
mycontrolClick += new EventHandler(OnClick);
void OnClick(object sender, EventArgs e)
{
MessageBox.Show("Clicked");
}
The problem is that the OnClick is never fired. I tried tracing the
Windows messages using SPY++ and i found the following message is sent
WM_PARENTNOTIFY fwEvent:WM_LBUTTONDOWN xPos:1190 yPos:173
and that the application received the message, but nothing happens.
I also tried capturing the WM_LBUTTONDOWN message in WndProc and still
if i click inside the control it never gets captured, but if i clicked
anywhere else on the form outside the control WndProc captures the
WM_LBUTTONDOWN
What can be the problem and if any help on how can i solve it i would
really appreciate it.
Looking forward to hearing from you
Thanks for your help in advance