But, what if the eventhandler method isnt directly available?
Well I guess the real question is, what are you really trying to do? Or,
why are you trying to simulate a mouse click?
IF you are just trying to perform the action that the application would
perform, then the method will work. You *could* make the event handler
public, but that's not exactly the best programming practice. Better would
be to put the code that runs in a separate public function, and have the
handler call that code.
IF you are actually trying to write a simulator (eg an automation package)
then I'll have to admit that I don't have the knowledge to answer your
question. I haven't personally noticed anything in .NET that will post a
windows message to another application, but there may be one. Otherwise,
P/Invoke isn't too difficult to get your arms around - give it a shot.
-mbray