Hello guys,
I am trying to access components of object created suring runtime. Basically the object is a new form and I call it like this:
The markedToEditLab el is a label and not visible by defualt, the QuickUpdate class uses ShowDialogue method to display the form. While the QuickUpdate form is open I change the visibility of the markedToEditLab el label to true and close the form. The closing of the form is performed by the Hide method placed in the QuickUpdate form it self. Once the form is exited, I would like to find out if the markedToEditLab el label was switched to visible. I checked this with the second line in the code in the MessageBox. However it seems to be forwarding false all the time, even though the visibility was changed to true before closing the QuickUpdate form.
Is there anything I am not doing correctly, or am I just trying to achieve something which is not possible!
Thanks in advance.
I am trying to access components of object created suring runtime. Basically the object is a new form and I call it like this:
Code:
QuickUpdate qu = new QuickUpdate(); MessageBox.Show(qu.markedToEditLabel.Visible.ToString());
Is there anything I am not doing correctly, or am I just trying to achieve something which is not possible!
Thanks in advance.
Comment