How can I pass values from one form to another?

前端 未结 10 2602
野的像风
野的像风 2020-12-02 00:43

Consider the situation where I have two windows forms, say F1 and F2. After using F1, I have now called F2.ShowDialog().

10条回答
  •  悲哀的现实
    2020-12-02 01:30

    Add this code in the relevant place in your from f1.

    Form f2 = new Form();
    f2.ShowDialog();
    

    HTH

提交回复
热议问题