passing data between 3 windows forms in visual studio using C#

后端 未结 5 1807
无人及你
无人及你 2021-01-27 03:23

I have a windows application which has 3 forms : Form1,2,3. I want to send text of a textbox from form2 to form1 and then that same text from for

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-27 03:40

    create nonparametrized constructor for form3 like in form2:

    public Form3() { InitializeComponent(); }

    This usually to create abstract methods in forms and/or delegates for updating textboxes and sharing data between forms. Or create some data holder.

提交回复
热议问题