How to call mainform method in another form in usercontrol C#

前端 未结 5 2075
长发绾君心
长发绾君心 2020-12-22 11:19

I am working with windowsFrom in c#. I am trying to call mainfrom method in one of the from in user control. I have mainfrom like this

namespace Project
{
          


        
5条回答
  •  臣服心动
    2020-12-22 11:58

    You create an event in your usercontrol and subscribe to this in the mainform. That is the usual way.

提交回复
热议问题