Changing base form UI design, does not reflect in inherited form.
-
Hello everybody. I have a base form "A" with two buttons. This form i inherited to form "B" and saved the project. Now for example if i add one more button to "A", it is not reflecting in form "B". I closed and opened "B" but still it is showing only two buttons. What to do for changes in "A" reflect in "B". I am using VS 2005, C#. Thanks
-
Hello everybody. I have a base form "A" with two buttons. This form i inherited to form "B" and saved the project. Now for example if i add one more button to "A", it is not reflecting in form "B". I closed and opened "B" but still it is showing only two buttons. What to do for changes in "A" reflect in "B". I am using VS 2005, C#. Thanks
Hi, if you add a Control to FormA inside its constructor (either programmatically or through Visual Designer), it will be present in every instance of FormA, as well as in every instance of FormB which inherits from FormA. if you programmatically add a Control to an instance of FormA after it has been constructed, then its FormA and FormB sibblings would not know this. If none of the above seem to fit, please explain more and/or show the essential parts of your code. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips: - use PRE tags to preserve formatting when showing multi-line code snippets - before you ask a question here, search CodeProject, then Google