Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Error while opening form in Design mode

Error while opening form in Design mode

Scheduled Pinned Locked Moved C#
visual-studiohelpcsharpdesignquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VSush
    wrote on last edited by
    #1

    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???

    R A D 3 Replies Last reply
    0
    • V VSush

      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???

      R Offline
      R Offline
      Rahul RK
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • V VSush

        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???

        A Offline
        A Offline
        alexey N
        wrote on last edited by
        #3

        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.

        V 1 Reply Last reply
        0
        • A alexey N

          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.

          V Offline
          V Offline
          VSush
          wrote on last edited by
          #4

          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.;)

          A 1 Reply Last reply
          0
          • V VSush

            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.;)

            A Offline
            A Offline
            alexey N
            wrote on last edited by
            #5

            You can simply write bat file or VS plugin.

            My english is not so good. Please, correct my errors. Best regards, Alexey.

            1 Reply Last reply
            0
            • V VSush

              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???

              D Offline
              D Offline
              deanofharvard
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups