c# - How can I pass values from one form to another? -
Consider the situation where I have two windows, say F1 and F2 . After using F1 , I have now called F2.ShowDialog () . It also puts F2 on the screen. Now when both are showing, how can I get data from F1 to F2 ? In addition, once the F2 (a modal dialog) ends, I F1 at
Is someone supposed to pass only the value of the form in the tag attribute?
form newForm = new form (); NewForm.Tag = passValue; Newform.showmodal (); When a new load load (or any other) shows the data in the tag
public zero load () (if (this.Tag .length & gt; 0) {// do something with data}}
Comments
Post a Comment