Re: Usercontrol changes doesn't compile?
- From: "Morten Wennevik [C# MVP]" <MortenWennevik@xxxxxxxxxxx>
- Date: Tue, 07 Aug 2007 18:29:33 +0200
On Tue, 07 Aug 2007 18:00:48 +0200, Johnny Jörgensen <jojo@xxxxxxxxx> wrote:
I've got a usercontrol derived from a normal ComboBox that contains some
special formatting code. On my main form I've got a lot of my custom
comboboxes.
I discovered a bug in the derived control and fixed it. But it still doesn't
work for the controls already added to the form. It works fine for new
instances of the control dragged from the toolbox to the form.
I don't want to have to drag and drop new controls to exchange all my old
controls - that is a sure way to introduce errors...
No matter what I do, I cannot update the old controls. I've tried changing
them in the designer file to regular ComboBoxes and back to my derived
combobox - Doesn't work.
I've tried removing the reference to the project in which the component is
located and readding it - Doesn't work. I've tried adding the new code
alongside the old code under a different classname and renaming the old
controls' class to the new controls' class in the designer file - Doesn't
work.
I'm lost now - have no more ideas! Why the h*** does it have to be that
hard?
/Johnny J.
Hi Johnny,
How are the Form and the UserControl related? Are they in the same project? If so, usually a recompile should be sufficient, though you may need to close and reopen the designer view to have it update itself. If you are referensing an external assembly make sure the referense is updated. Check if the new assembly is copied locally if needed, and maybe delete and recreate the referense.
--
Happy coding!
Morten Wennevik [C# MVP]
.
- Follow-Ups:
- Re: Usercontrol changes doesn't compile?
- From: Johnny Jörgensen
- Re: Usercontrol changes doesn't compile?
- References:
- Usercontrol changes doesn't compile?
- From: Johnny Jörgensen
- Usercontrol changes doesn't compile?
- Prev by Date: Image in DataGridView does not show!! PLEASE HELP!
- Next by Date: Re: SQl Data Provider Performance Issues
- Previous by thread: Usercontrol changes doesn't compile?
- Next by thread: Re: Usercontrol changes doesn't compile?
- Index(es):
Relevant Pages
|