473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Question about Inherit UserControl

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.
Nov 20 '05 #1
8 1672
Try deleting the control from the forms and then re-adding it.

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.

Nov 20 '05 #2
Try deleting the control from the forms and then re-adding it.

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.

Nov 20 '05 #3
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.
-----Original Message-----
Try deleting the control from the forms and then re- adding it.
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.

.

Nov 20 '05 #4
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.
-----Original Message-----
Try deleting the control from the forms and then re- adding it.
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.

.

Nov 20 '05 #5
"Issac" <an*******@discussions.microsoft.com> schrieb
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

Nov 20 '05 #6
"Issac" <an*******@discussions.microsoft.com> schrieb
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

Nov 20 '05 #7
You need to rename/remove manually

Still can use Search and Replace :)

Issac wrote:
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.


Nov 20 '05 #8
You need to rename/remove manually

Still can use Search and Replace :)

Issac wrote:
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.


Nov 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Chris | last post by:
I have a question on whether or not this is good practice. I have a fairly complex web user control (a datalist embedded in a datalist with lots of controls) that I will call Usercontrol1 and a...
6
by: Mohammad-Reza | last post by:
I wrote a component using class library wizard. In my component i want to in order to RightToLeft property do some works. I can find out if user set this property to Yes or No, But if He/She set it...
0
by: Issac | last post by:
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...
5
by: Jim Hubbard | last post by:
I have created a simple usercontrol that adds functionality to the webbrowser control (let's call it ctrl1). I would like to add it to another usercontrol I am creating (let's call it ctrl2), but...
3
by: Station Media | last post by:
Hi everybody, I need to create a custom button for all our internal applications, and i would like to know what is the best for this type of control(button), is it to inherit standard button or...
3
by: Guillaume Hanique | last post by:
Hi, I feel very stupid. I simply want to derive a control from system.web.ui.webcontrols.button and use that on my webform, but I just can't get it done. Can anyone tell me how to do that? I...
7
by: John D'oh | last post by:
Hello, I have been going through the MSDN Walkthrough: Creating a Windows Forms Control That Takes Advantage of Visual Studio Design-Time Features. Everything was going fine and I was able to...
2
by: Joe | last post by:
Is it possible to inherit from a UserControl? If I try my user control class is not recognized. Thanks, Joe
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.