to be a static function.
<m
@spam.guard.caspershouse.com> wrote:
> Ahmed,
> This isn't true. Events are executed on the thread that they are raised
> on. When the events are fired on another thread, it is because they are
> raised on that thread.
> Also, event handlers can be static methods, or instance methods. You
> can attach an event handler to an instance method, and then access all the
> members of that instance in the event handler (since it is just another
> member).
> So instead of attaching to a static method, why not attach to an
> instance method which has access to the members you need?
> --
> - Nicholas Paldino [.NET/C# MVP]
> - m@spam.guard.caspershouse.com
> "Ahmed" <ahme@gmail.com> wrote in message
> news:1181078169.494078.139290@x35g2000prf.googlegroups.com...
> > Ok i understand the fact that once events are raised they are executed
> > on another thread and have no access to member functions or variables
> > because they are static functions.
> > But i am having trouble how i can Invoke these methods from the static
> > method.
> > Can anyone help me out here? :)
> > TIA!