inheriting values among forms
-
i have two forms , form 1 and form 2 if have given some value in textbox1 of form1, i want the same value to be displayed on label of form2... please help.. thanks
-
i have two forms , form 1 and form 2 if have given some value in textbox1 of form1, i want the same value to be displayed on label of form2... please help.. thanks
You should NEVER pass a reference to a control between forms. You can pass the string to form2, via a property, store the value in a common property in a static class, or use a delegate to inform form2 when it changes in form1, if form2 is modeless.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )