[RESOLVED] [02/03] Error Loading previously valid form
Any ideas? When I double-click on the form to bring it up in the form editor, I get this screen. When I double-click "Object reference not..." on the bottom it takes me to the top of the source page, but that is it. I don't know about the other two errors, but they don't get in the way of compiling and building (warnings, maybe). I have worked on this form many times, and this has never happened. I have no idea how to fix this.
Thanks
Re: [02/03] Error Loading previously valid form
See if FormName.vb and FormName.Designer.vb have the same name.
Public Class FormName
Partial Class FormName
Re: [02/03] Error Loading previously valid form
Do you mean in Explorer?
Like this:
Re: [02/03] Error Loading previously valid form
No, open them with notepad.
Or in visual studio in the solution explorer first click the 'show all files' button (it is the second from the left), then right click form.designer.vb and select 'view code'.
Re: [02/03] Error Loading previously valid form
Disregard all, those instructions are for vb 2005.
Re: [02/03] Error Loading previously valid form
I was thinking something was amiss.
Get this, I fixed it, for a moment. I opened an old project and copied the new folders in. Everything was fine. I opened it, closed it, reopened it, erased and retyped a character in each project, rebuilt, closed, opened...really ran it through its paces. Nothing went wrong. Then, I moved the folder on my desktop and renamed it...screwed up again.
What the hell?
Re: [02/03] Error Loading previously valid form
UPDATE:
I renamed the folder to its original name, and it is working again. This is bizarre. There must be a string somewhere literally referencing that folder name.
Re: [02/03] Error Loading previously valid form
Not so bizarre, happens plenty. Are you opening any files or doing anything like that during the loading of the form?
Re: [02/03] Error Loading previously valid form
I figured it out. Now, I think this is bizarre. I can call the folder whatever I want, and it will still work. However, if there is an ampersand (&) in the name of the folder (which there was) it won't work. I swear, I can change it from "&" to "and" and it will work, and I can change it back and it is hosed again. It could be that one of the "modules" is a custom control that was created where I work, I don't know. Come to think of it, this did happen to me when I was working on something else recently.