Is it possible to trigger a click event from another form?

前端 未结 5 865
北荒
北荒 2020-12-30 07:38

I need to run the code of a button that is on another form. is it possible to do it from a different form? if you say that it is possible by declaring it public then:

<
5条回答
  •  甜味超标
    2020-12-30 08:28

    Why not create a public method in a shared class that both click events execute.

提交回复
热议问题