your solution does not help me. Please see my reply to
peter with subject: "OK, I knew that already".
Thanks,
Haim.
-----Original Message-----
Let's suppose you have an event called DirtyChanged in
your class, here
is how you would raise the event using C#
public class EventTester
{
public event EventHandler DirtyChanged;
public void RaiseDirtyChangedEvent()
{
//The check is required because if no
event handlers are
//attached to the event then the next
line will throw a
//NullReferenceExcpetion
if(DirtyChanged != null)
DirtyChanged(this,new EventArgs
());
}
}
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
Haim wrote:
Hi,
I would like to know if there in C# an equivalent to
the
VB.NET RaiseEvent statement.
I would like to raise an event of a control in my code
as
if the user's action provoked it.
Thanks,
Haim.
.