When you change the namespace or other item inside a partial class (like Forms) directly from the code editor you are making an invitation for madness. As the name suggest a partial class is a class that is defined "partially" on the code view, but there is another part which is generated automaticall by VS and that is the other part of the class. In that part it contains the definition of all UI elements, fonts, default values, etc.When you change the name space in one part of the class the other part don't know what do and then the interesting errors start.
When changing namespaces, class names, event methods names always use the Refactor option in VS In your case, I would probably go back to the old name it had, and then use Refactor option VS provides (ghlight the component name, Ricgh click, refactor->rename) Hope this help.
When you change the namespace or other item inside a partial class (like Forms) directly from the code editor you are making an invitation for madness. As the name suggest a partial class is a class that is defined "partially" on the code view, but there is another part which is generated automaticall by VS and that is the other part of the class. In that part it contains the definition of all UI elements, fonts, default values, etc.When you change the name space in one part of the class the other part don't know what do and then the interesting errors start.
When changing namespaces, class names, event methods names always use the Refactor option in VS. In your case, I would probably go back to the old name it had, and then use Refactor option VS provides (ghlight the component name, Ricgh click, refactor->rename) Hope this help.
Thanks a a lot. Completely deleting the files, opening the original copies up and using the Refactor thing to set the correct new namespace, and then restarting Visual Studio worked great. – cksubs Jul 25 '09 at 2:28.
That is, have you verified that System.Windows.Forms. Dll is referenced in your project? To add the reference if it's missing do the following Click: View -> Solution Explorer Right Click on the References node and select "Add Referenc" Go to the .
Net Tab Scroll until you see System.Windows.Forms. Dll Select that and hit OK.
I have not (and the error makes no mention of the ". Dll" part so I didn't know to look at that). How would I make that reference?
The thing about this is that it just suddenly starts giving the error, then a restart may fix it for a bit, etc. Thanks for the help. – cksubs Jul 25 '09 at 1:29 1 @cksubs, I just added steps to get this added to your project. – JaredPar Jul 25 '09 at 1:35 I guess I should have checked to see if it was there first, but I just added the file via your steps, and it shows up in the tree view under References in the Solution Explorer, but I still get the same error and am unable to open the designer.
Any other suggestions? Blah. – cksubs Jul 25 '09 at 1:42 @cksubs, try restarting VS at this point.
If that doesn't work can you list the DLL's starting with System which are referenced? – JaredPar Jul 25 '09 at 1:44 Sure, just restarted. I see about 1.5 seconds of my designer form before it is replaced with the error page.
From the solutions explorer tree: System System. Data System. Deployment System.
Design System. Drawing System.Windows. Forms System.
Xml And then also the ones from my code in the original question if those matter – cksubs Jul 25 '09 at 1:49.
Classes within it can be designed. Base class 'System.Windows.Forms. Could not be loaded.
All projects have been built.
When you change the namespace or other item inside a partial class (like Forms) directly from the code editor you are making an invitation for madness. As the name suggest a partial class is a class that is defined "partially" on the code view, but there is another part which is generated automaticall by VS and that is the other part of the class. In that part it contains the definition of all UI elements, fonts, default values, etc. When you change the name space in one part of the class the other part don't know what do and then the interesting errors start.
When changing namespaces, class names, event methods names always use the Refactor option in VS.
That is, have you verified that System.Windows.Forms. Dll is referenced in your project?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.