get controls inside a form in a Multi form application
-
can anyone help me in this, i have a multi form app. , i have many open forms, all of the same type(say MyForm) i want to get the text of a textbox inside each open forms) as well as many info, including the position of the form can anyone tell me how to do it thnx in advance
Web Developer @ Silverkey Egypt
-
can anyone help me in this, i have a multi form app. , i have many open forms, all of the same type(say MyForm) i want to get the text of a textbox inside each open forms) as well as many info, including the position of the form can anyone tell me how to do it thnx in advance
Web Developer @ Silverkey Egypt
-
can anyone help me in this, i have a multi form app. , i have many open forms, all of the same type(say MyForm) i want to get the text of a textbox inside each open forms) as well as many info, including the position of the form can anyone tell me how to do it thnx in advance
Web Developer @ Silverkey Egypt
1. If it's MDI, you can get the open forms in MDIChildren. 2. If it's not, you can get the open forms in Application.OpenForms. Expose a get-only string property from MyForm, which return the text box's Text property. Get all the open forms from 1 or 2, check whether it's type of MyForm, cast the form to MyForm and access the exposed property.
-
1. If it's MDI, you can get the open forms in MDIChildren. 2. If it's not, you can get the open forms in Application.OpenForms. Expose a get-only string property from MyForm, which return the text box's Text property. Get all the open forms from 1 or 2, check whether it's type of MyForm, cast the form to MyForm and access the exposed property.
thanks you very much, will try that
Web Developer @ Silverkey Egypt