how to communicate data between forms?

后端 未结 4 768
后悔当初
后悔当初 2021-01-23 18:51

I want to pass some values to different forms at there button click event. plz guide me.I am using c sharp.net 2005,win forms. I want to access the value in a sql query in form

4条回答
  •  庸人自扰
    2021-01-23 19:28

    Use delegate. Thats the best way you could talk. Or as suggested, if form2 is a child of form1, then ctor argument based. If its 2 independent, then delegates.

提交回复
热议问题