Question about Inherit UserControl

I

Issac

Hi,

I created an Inherit UserControl which inherits textbox
with additional property say 'Type'. I used in my forms
and everything works fine. But afterward, I want to
remove (or rename) such property. I find that the auto
inserted code (InitializeComponent) for that UserControl's
property doesn't get update, and I got tons of errors from
wherever I referenced it. Do I need to manually update
InitializeComponent module in every single form that used
UserControl? Or there's other work around?

Please help, Thanks.
 
I

Issac

Thanks for reply.

That will work, but the problem is I have 150+ forms and
more than one UserControls on each form. It could be an
overhead if any change need to remove/add/rename all one
by one.
 
A

Armin Zingler

Issac said:
Hi,

I created an Inherit UserControl which inherits textbox
with additional property say 'Type'. I used in my forms
and everything works fine. But afterward, I want to
remove (or rename) such property. I find that the auto
inserted code (InitializeComponent) for that UserControl's
property doesn't get update, and I got tons of errors from
wherever I referenced it. Do I need to manually update
InitializeComponent module in every single form that used
UserControl? Or there's other work around?

In general, you should never change property names or other public items
after the class has been released, but as you already did, I think
Find&Replace (confirming each item found) is your friend.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 

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