Help in Passing value from child form to parent form
-
How can I set a public value of a parent form from a child form?
-
How can I set a public value of a parent form from a child form?
-
How can I set a public value of a parent form from a child form?
Don't make it public. Use delegates to create communication between forms. You can pass form instances around, but it's ugly, and hacky. Delegates are the right way to do this. There's a CP article on passing data between forms which covers this nicely.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
How can I set a public value of a parent form from a child form?
you must declare the parent property (Property Procedure) as static in the parent form then u can set it from any child form.:rose: in the child form just by accessing the parent property like this ParentFormName.StaticProperty = anyValue;:rose: