How can I invoke an event handler from a function?

后端 未结 1 1978
轻奢々
轻奢々 2021-01-25 07:55

I have a class from which I call a function ABC(string st) with a string argument.

The function is defined inside a Form class, Form1

相关标签:
1条回答
  • 2021-01-25 08:30

    You can't invoke an event handler of another class - events encapsulate the idea of subscription and unsubscription for handlers, not invocation.

    Which aspect of the ListView MouseClick event are you interested in? Would changing the selected item be enough, perhaps?

    0 讨论(0)
提交回复
热议问题