Cloning A User Control

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?
 
L

Luke Zhang [MSFT]

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.)
 
W

Wayne Wengert

Thanks Luke;

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

Wayne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top