Send values from one form to another form

后端 未结 19 2517
眼角桃花
眼角桃花 2020-11-21 11:45

I want to pass values between two Forms (c#). How can I do it?

I have two forms: Form1 and Form2.

Form1 contains one button. When I click on that button, Fo

19条回答
  •  死守一世寂寞
    2020-11-21 11:56

    I've worked on various winform projects and as the applications gets more complex (more dialogs and interactions between them) then i've started to use some eventing system to help me out, because management of opening and closing windows manually will be hard to maintain and develope further.

    I've used CAB for my applications, it has an eventing system but it might be an overkill in your case :) You could write your own events for simpler applications

提交回复
热议问题