User control not updating when running project
-
Hi All This has been drving me insane. I have a user control that I am adding and removing controls from and want to see what it looks like on the main form. When I goto the main form the updates are not there. The same thing happens when I run the solution. Taking the control off and putting it on again doesn't work. Shutting down visual studio 2008 and re-opening it causes me to loose all of my changes. I found this article here[^] but it didn't fix my problem. I even deleted all copies of the dll I could find, checked the auto populate setting and when I went to the Choose Items... dialog, there was a reference to the dll in there as before. The form and user control are in the same DLL within the solution. Is there any way around it? Should I structure my project differently? Thanks for your help in advance
The FoZ
-
Hi All This has been drving me insane. I have a user control that I am adding and removing controls from and want to see what it looks like on the main form. When I goto the main form the updates are not there. The same thing happens when I run the solution. Taking the control off and putting it on again doesn't work. Shutting down visual studio 2008 and re-opening it causes me to loose all of my changes. I found this article here[^] but it didn't fix my problem. I even deleted all copies of the dll I could find, checked the auto populate setting and when I went to the Choose Items... dialog, there was a reference to the dll in there as before. The form and user control are in the same DLL within the solution. Is there any way around it? Should I structure my project differently? Thanks for your help in advance
The FoZ
A bit harsh, but this should do the trick;
- Right-click on the toolbox, and choose "Reset Toolbox".
- Right-click on the toolbox, and choose "Choose Items.."
- Select "browse" to navigate to the assembly containing the UserControl.
Bastard Programmer from Hell :suss:
-
Hi All This has been drving me insane. I have a user control that I am adding and removing controls from and want to see what it looks like on the main form. When I goto the main form the updates are not there. The same thing happens when I run the solution. Taking the control off and putting it on again doesn't work. Shutting down visual studio 2008 and re-opening it causes me to loose all of my changes. I found this article here[^] but it didn't fix my problem. I even deleted all copies of the dll I could find, checked the auto populate setting and when I went to the Choose Items... dialog, there was a reference to the dll in there as before. The form and user control are in the same DLL within the solution. Is there any way around it? Should I structure my project differently? Thanks for your help in advance
The FoZ
Closing Visual Studio and losing your changes without a prompt is really strange. I think Visual Studio is corrupt. Does it update if you close the user control and main window, then build and reopen the main window? If so go with that.
"You get that on the big jobs."
-
Closing Visual Studio and losing your changes without a prompt is really strange. I think Visual Studio is corrupt. Does it update if you close the user control and main window, then build and reopen the main window? If so go with that.
"You get that on the big jobs."