send mouseclick message in .net
<p>I would like to programmatically send a mouse click from a usercontrol to it's creator when a control is selected in the usercontrol.</p>

<p>I have tried :</p>

<pre><code> private const int MOUSEEVENTF_LEFTDOWN = 0x02;
 private const int MOUSEEVENTF_LEFTUP = 0x04;

    [DllImport("user32.dll")]
    private static extern void mouse_event(
    UInt32 dwFlags, // motion and click options 
    UInt32 dx, // horizontal position or change 
    UInt32 dy, // vertical position or change 
    UInt32 dwData, // wheel movement 
    IntPtr dwExtraInfo // application-defined information 
    ); 

    mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, new System.IntPtr());
    mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, new System.IntPtr());
</code></pre>

<p>But I am not having any success in recieving the event at the parent.</p>

<p>perhaps there is another way for a mouseclick to cascade down?</p>

<p>Thanks</p>
