pleasehelp me to pass data between windows forms.
[email protected]
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AnttiPosted Dec 4, 2005, 6:41 AM
First you create form object. Then you can set or get values or call methods.
using( MyForm form = new MyForm() ){
//you can set some properties to form
form.SomePublicProperty = 12345;
form.OtherPublicProperty = "Testing";
//then show
form.ShowDialog();
//you can get properies after form is closed
int someFigure = form.ThirdProperty;
}