Hi,
It would help me a lot if you kindly write a small
example.
Thanks,
Haim.
>-----Original Message-----
>Hi,
[quoted text clipped - 16 lines]
>
>.
Peter Jausovec - 27 Sep 2004 15:04 GMT
Sure. E.g. :
private void button_Click(object sender, System.EventArgs e)
{
// do something here
}
private void RaiseTheEvent (...)
{
button_Click (this, System.EventArgs)
}
> Hi,
> It would help me a lot if you kindly write a small
[quoted text clipped - 26 lines]
> >
> >.
Haim - 27 Sep 2004 15:24 GMT
My question was - if you have a control with a given set
of events, like a notifyIcon that displayes the text only
when on the mouse hover event, its not me who wrote this
event function (it is a part of the given control and I
have no access to it) so I can't call it.
I would like to trigger the mouse hover event of a
notifyIcon (for example) at my will and not only when the
user activate it.
Is there a way?
>-----Original Message-----
>Sure. E.g. :
[quoted text clipped - 41 lines]
>
>.
Peter Jausovec - 27 Sep 2004 16:01 GMT
If I understand you're trying to show the tooltip for e.g. notifyIcon
programmatically ?
> My question was - if you have a control with a given set
> of events, like a notifyIcon that displayes the text only
[quoted text clipped - 54 lines]
> >
> >.
Haim - 28 Sep 2004 08:12 GMT
But this is only a small example for a need of this kind.
In VB.NET the RaiseEvent statement solve this problem, I
thought there must be an equivalent in C#...
Thanks again,
Haim.
>-----Original Message-----
>If I understand you're trying to show the tooltip for e.g. notifyIcon
[quoted text clipped - 60 lines]
>
>.
Morten Wennevik - 27 Sep 2004 15:10 GMT
Hi haim,
If you have a MouseDown event like this
private void MyControl_MouseDown(object sender, MouseEventArgs e)
{
}
then you can call this directly with
MyControl_MouseDown(MyControl, new MouseEventArgs(MouseButtons.Right, 1, x, y, 0));
To indicate that the user clicked once on MyControl in location (x, y);

Signature
Happy coding!
Morten Wennevik [C# MVP]
Please see my above reply to Peter, your solution does
not help me...
>-----Original Message-----
>Hi haim,
[quoted text clipped - 10 lines]
>
>To indicate that the user clicked once on MyControl in location (x, y);