Accessing Form's Control from another class C#

前端 未结 4 1260
礼貌的吻别
礼貌的吻别 2020-12-19 10:38

I\'m a newbie in c# and visual studio, but not programming in general. I searched for answer to my question for 3 days and I found plenty of them, but for some weird reason

4条回答
  •  余生分开走
    2020-12-19 11:15

    You're creating a brand new Form3() instance.
    This does not affect the existing form.

    You need to pass the form as a parameter to the method.

提交回复
热议问题