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. Flaky VS.NET Designer

Flaky VS.NET Designer

Scheduled Pinned Locked Moved C#
helpcsharpvisual-studioquestion
5 Posts 3 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.
  • S Offline
    S Offline
    Senkwe Chanda
    wrote on last edited by
    #1

    Doesn't it irritate you when seemingly innocuous changes to a control or form render the VS.NET designer useless? Change one little thing and you end up with any number of obscure error messages, my personal favorite "An error occured while loading the document. Fix the error, and then load the document again. The error message follows. Unspecified error" I'm actually getting used to not using the forms designer at all because of this. Has anyone experienced something similar? I'm on RC1 Regards Senkwe Just another wannabe code junky

    J 1 Reply Last reply
    0
    • S Senkwe Chanda

      Doesn't it irritate you when seemingly innocuous changes to a control or form render the VS.NET designer useless? Change one little thing and you end up with any number of obscure error messages, my personal favorite "An error occured while loading the document. Fix the error, and then load the document again. The error message follows. Unspecified error" I'm actually getting used to not using the forms designer at all because of this. Has anyone experienced something similar? I'm on RC1 Regards Senkwe Just another wannabe code junky

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      The only time I had the designer do that to me was when something was at fault in my code, especially in the drawing code. If your code throws an uncaught exception this causes the big red x you see in the form. Hopefully this will at least give you some reason as to why you get the designer errors. James Sonork ID: 100.11138 - Hasaki "My words but a whisper -- your deafness a SHOUT. I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972

      S 1 Reply Last reply
      0
      • J James T Johnson

        The only time I had the designer do that to me was when something was at fault in my code, especially in the drawing code. If your code throws an uncaught exception this causes the big red x you see in the form. Hopefully this will at least give you some reason as to why you get the designer errors. James Sonork ID: 100.11138 - Hasaki "My words but a whisper -- your deafness a SHOUT. I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972

        S Offline
        S Offline
        Senkwe Chanda
        wrote on last edited by
        #3

        Thanks James, but why then does removing the offending code usually not help? Just another wannabe code junky

        J 1 Reply Last reply
        0
        • S Senkwe Chanda

          Thanks James, but why then does removing the offending code usually not help? Just another wannabe code junky

          J Offline
          J Offline
          James T Johnson
          wrote on last edited by
          #4

          Senkwe Chanda wrote: but why then does removing the offending code usually not help? Off the top of my head it might be pulling a previous version up; I had a very hard time getting VS.NET to sync the latest build of the control and my test projects. What I wound up doing was having 2 VS.NETs open, one to work on my control the other to do testing with; before I would compile the control I would remove the reference to it from the project; recompile the control then re-add the reference. This was before I found out about project references though, and now I don't have VS.NET installed so I can't see if that solves the problems I was experiencing. HTH, James Sonork ID: 100.11138 - Hasaki "My words but a whisper -- your deafness a SHOUT. I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972

          P 1 Reply Last reply
          0
          • J James T Johnson

            Senkwe Chanda wrote: but why then does removing the offending code usually not help? Off the top of my head it might be pulling a previous version up; I had a very hard time getting VS.NET to sync the latest build of the control and my test projects. What I wound up doing was having 2 VS.NETs open, one to work on my control the other to do testing with; before I would compile the control I would remove the reference to it from the project; recompile the control then re-add the reference. This was before I found out about project references though, and now I don't have VS.NET installed so I can't see if that solves the problems I was experiencing. HTH, James Sonork ID: 100.11138 - Hasaki "My words but a whisper -- your deafness a SHOUT. I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972

            P Offline
            P Offline
            Peter Stephens
            wrote on last edited by
            #5

            I had a terrible time getting my control icons to work. I finally discovered that VS.NET was caching the icons based on the assembly version. I had no AssemblyInfo.cs file (or its equivalent) and so my version stayed at 0.0.0.0 and my icon was not changing. Once I set my version to 1.0.0.* my icons worked properly. Otherwise I have no problem using controls from one project in another project under the same solution and under the same instance of the IDE. I just have to remember to build my control assembly before trying to use it (ie in the Form Designer of another project). -- Peter Stephens

            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