Cloning A User Control

  • Thread starter Thread starter Wayne Wengert
  • Start date Start date
W

Wayne Wengert

I built a custom user control (textbox) and that worked fine. Now I want to
create three variation of that text box. If I open the original solution and
try to rename and save things in another directory the new solution still
seems tied to the original in some ways (some of the files go to the old
directory and/or it won't let me rename some files)

What is the right way to do this?
 
You can create a new project and copy/paste code from your original
project. Besides this, you also can consider create new controls inheriting
from the original. The Child control can has all properties and methods
from original one, and you aslo can add new features to it.


Luke

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Thanks Luke;

I am still not used to OO. I'll look into the inheritance approach - that
makes sense.

Wayne
 
Back
Top