pleasehelp me to pass data between windows forms.
[email protected]
Passing data between forms
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
AnttiRank #9,295 · 208 reputationPosted Dec 4, 2005, 1:41 AM EST
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;
}