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 1606
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: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
|
by: Oralloy |
last post by:
Hello Folks,
I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA.
My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
|
by: Carina712 |
last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
|
by: Ricardo de Mila |
last post by:
Dear people, good afternoon...
I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control.
Than I need to discover what...
|
by: Johno34 |
last post by:
I have this click event on my form. It speaks to a Datasheet Subform
Private Sub Command260_Click()
Dim r As DAO.Recordset
Set r = Form_frmABCD.Form.RecordsetClone
r.MoveFirst
Do
If...
|
by: ezappsrUS |
last post by:
Hi,
I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
| |