change child form control property at runtime using vb.net 2003
-
Hello All, In my application i have to change child form text and label's visible property to false based on some condition like: In my application MDI form is a startup screen and written the following code if bvar = false then dim frm as new frmchild frm.label1.visible=false frm.text="Hello" end if Presently i have written it in module because it has to be included in either a class or module as per requirement. But, whenever i execute my application, the label still remains visible and also form text remains the same. I am using dot net 2003. anyone who knows, Please help at the earliest how properties can be changed at runtime. Please provide some code if possible. Thanks .
-
Hello All, In my application i have to change child form text and label's visible property to false based on some condition like: In my application MDI form is a startup screen and written the following code if bvar = false then dim frm as new frmchild frm.label1.visible=false frm.text="Hello" end if Presently i have written it in module because it has to be included in either a class or module as per requirement. But, whenever i execute my application, the label still remains visible and also form text remains the same. I am using dot net 2003. anyone who knows, Please help at the earliest how properties can be changed at runtime. Please provide some code if possible. Thanks .
Pass the Form object to module when you call the Module.
Parwej Ahamad g.parwez@gmail.com
-
Pass the Form object to module when you call the Module.
Parwej Ahamad g.parwez@gmail.com
I have to change multiple child forms label property with a single call. is it possible. I am calling the procedure in MDI load event. In the single procedure, I have created instances of multiple child forms. Am i doing nothing wrong. the same code executes in vb.net 2005 , so how it can be done in vb.net 2003
-
I have to change multiple child forms label property with a single call. is it possible. I am calling the procedure in MDI load event. In the single procedure, I have created instances of multiple child forms. Am i doing nothing wrong. the same code executes in vb.net 2005 , so how it can be done in vb.net 2003
Hi you need to hold the all object of the form. So Create the all form object out of the mdi form load method and call module and pass each form object to the module. Or if got any error messages then post here.
Parwej Ahamad g.parwez@gmail.com