Hello,
I think I haven't understood you right. But
a) If you want to invoke a system event that is a mouse right-click you
need to use the Win32 API via DLL p/Invoke.
b) If you just need to catch the event hook on the MouseClick or
MouseDown or MouseUp event and react to the member Button given by the
event:
public void OnMouseClick(object sender,
System.Windows.Forms.MouseEventArgs e)
{
if (e.Button == System.Windows.Forms.MouseButtons.Right)
{
// place your code here
}
}
Bye
Matthias
(E-Mail Removed) schrieb:
> I don't want to trigger any event, I just access to a right-click. It's
> a long story why I want this, but is it possible with or without win32
> API?
>
>
> Stoitcho Goutsev (100) wrote:
>> It depends what you mean by this.
>> Do you want to simulate mouse clicks and movements or you just want to fire
>> the events of some particular control?
>>
>>
>> --
>> Stoitcho Goutsev (100)
>>
>> <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>
>>> How do I invoke a "Right-Click" Programmtically?
>>>
>>> John
>>>
>