Error while opening form in Design mode
-
I have visual studio 2003 installed. Everything was working fine till now, but all of a sudden i am not able to open windows form in designer mode. When i try to open it, i get the message <> I tried closing the IDE and reopening, rebuliding (funny thing is it builds fine and the form gets displayed when i run the application), closing the solution and building form command prompt. Nothing that I did fixed the issue. Any idea anyone???
-
I have visual studio 2003 installed. Everything was working fine till now, but all of a sudden i am not able to open windows form in designer mode. When i try to open it, i get the message <> I tried closing the IDE and reopening, rebuliding (funny thing is it builds fine and the form gets displayed when i run the application), closing the solution and building form command prompt. Nothing that I did fixed the issue. Any idea anyone???
Hi Friend, what you have to do open the code view if window which does not open in design mode and check that the first class name in the namespace must be the class name of the form's class i.e. it may be Form1 like that. Other classes should be below that. Rahul Kulkarni
-
I have visual studio 2003 installed. Everything was working fine till now, but all of a sudden i am not able to open windows form in designer mode. When i try to open it, i get the message <> I tried closing the IDE and reopening, rebuliding (funny thing is it builds fine and the form gets displayed when i run the application), closing the solution and building form command prompt. Nothing that I did fixed the issue. Any idea anyone???
I have same problem with ActiveX components on form. But when I reopening VS2005 all works fine. Maybe you trying to access some object before it's initizlisation ? Analize your callstack.
My english is not so good. Please, correct my errors. Best regards, Alexey.
-
I have same problem with ActiveX components on form. But when I reopening VS2005 all works fine. Maybe you trying to access some object before it's initizlisation ? Analize your callstack.
My english is not so good. Please, correct my errors. Best regards, Alexey.
Thanks for the suggestions. Actually the problem was not with any initialization or anything sort of that. The same solution was working perfectly fine until yesterday! I had installed some system updates...not sure if that has goofed up my IDE. But anyways, i just went about cleaning up all my projects, bin/obj/cproj.user and then opened the solution again, built it. Things are working fine now. Hopefully i shouldnt face the problem again...else i'll have to setup a schedule task to do this everyday.;)
-
Thanks for the suggestions. Actually the problem was not with any initialization or anything sort of that. The same solution was working perfectly fine until yesterday! I had installed some system updates...not sure if that has goofed up my IDE. But anyways, i just went about cleaning up all my projects, bin/obj/cproj.user and then opened the solution again, built it. Things are working fine now. Hopefully i shouldnt face the problem again...else i'll have to setup a schedule task to do this everyday.;)
-
I have visual studio 2003 installed. Everything was working fine till now, but all of a sudden i am not able to open windows form in designer mode. When i try to open it, i get the message <> I tried closing the IDE and reopening, rebuliding (funny thing is it builds fine and the form gets displayed when i run the application), closing the solution and building form command prompt. Nothing that I did fixed the issue. Any idea anyone???
Weird thing with VS (2005 at least)... If you aren't relying on DB data for your controls when you initialize them (which I learned not to do the hard way...) you might need to delete the bin and object directories from your solution folder. Close all designer tabs open in the IDE. Close VS. Delete those folders. Re-open VS. Recompile the app. Then re-open the files that were having problems. Don't know why this happens, just know this sometimes solves it.