473,378 Members | 1,122 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,378 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 1670
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
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.