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. 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.
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.
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. .
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. .
"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
"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
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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
|
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,...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: 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,...
|
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...
|
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,...
|
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...
| |