RE: Renaming/Replication of win forms by RonBarone
RonBarone
Tue Nov 09 09:13:08 CST 2004
I have always copied and pasted the code into the new form. Change the
namespace and the possibly the name and recompile. A simple search and
replace can be done if you are concerned with other references, but that
shouldnt be much of a problem.
If the form isnt reconized as a new form, I just go into the code on the
inherits line and add a space and then remove the space, for some reason the
IDE then reconizes the the file as a "designable" form/usercontrol because it
must recheck the base class.
Hope this helps.
"Ykessler" wrote:
> Hi,
>
> Can anyone give me an idea of the best way to copy/replicate a win form?
> Whenever I simply copy, I get problems with the class no longer being
> recognized as a form.
> Also, when renaming a form, is there any way to ensure that all the
> relevant paths/references within the file are also changed? (e.g. I rename a
> form, and I want the underlying class name to reflect that change)
>
> Thanks in advance for any help...
> -Yarin