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. User control not updating when running project

User control not updating when running project

Scheduled Pinned Locked Moved C#
helpcsharpvisual-studiowinformscom
4 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.
  • T Offline
    T Offline
    TheFoZ
    wrote on last edited by
    #1

    Hi All This has been drving me insane. I have a user control that I am adding and removing controls from and want to see what it looks like on the main form. When I goto the main form the updates are not there. The same thing happens when I run the solution. Taking the control off and putting it on again doesn't work. Shutting down visual studio 2008 and re-opening it causes me to loose all of my changes. I found this article here[^] but it didn't fix my problem. I even deleted all copies of the dll I could find, checked the auto populate setting and when I went to the Choose Items... dialog, there was a reference to the dll in there as before. The form and user control are in the same DLL within the solution. Is there any way around it? Should I structure my project differently? Thanks for your help in advance

    The FoZ

    L R 2 Replies Last reply
    0
    • T TheFoZ

      Hi All This has been drving me insane. I have a user control that I am adding and removing controls from and want to see what it looks like on the main form. When I goto the main form the updates are not there. The same thing happens when I run the solution. Taking the control off and putting it on again doesn't work. Shutting down visual studio 2008 and re-opening it causes me to loose all of my changes. I found this article here[^] but it didn't fix my problem. I even deleted all copies of the dll I could find, checked the auto populate setting and when I went to the Choose Items... dialog, there was a reference to the dll in there as before. The form and user control are in the same DLL within the solution. Is there any way around it? Should I structure my project differently? Thanks for your help in advance

      The FoZ

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      A bit harsh, but this should do the trick;

      • Right-click on the toolbox, and choose "Reset Toolbox".
      • Right-click on the toolbox, and choose "Choose Items.."
      • Select "browse" to navigate to the assembly containing the UserControl.

      Bastard Programmer from Hell :suss:

      1 Reply Last reply
      0
      • T TheFoZ

        Hi All This has been drving me insane. I have a user control that I am adding and removing controls from and want to see what it looks like on the main form. When I goto the main form the updates are not there. The same thing happens when I run the solution. Taking the control off and putting it on again doesn't work. Shutting down visual studio 2008 and re-opening it causes me to loose all of my changes. I found this article here[^] but it didn't fix my problem. I even deleted all copies of the dll I could find, checked the auto populate setting and when I went to the Choose Items... dialog, there was a reference to the dll in there as before. The form and user control are in the same DLL within the solution. Is there any way around it? Should I structure my project differently? Thanks for your help in advance

        The FoZ

        R Offline
        R Offline
        RobCroll
        wrote on last edited by
        #3

        Closing Visual Studio and losing your changes without a prompt is really strange. I think Visual Studio is corrupt. Does it update if you close the user control and main window, then build and reopen the main window? If so go with that.

        "You get that on the big jobs."

        T 1 Reply Last reply
        0
        • R RobCroll

          Closing Visual Studio and losing your changes without a prompt is really strange. I think Visual Studio is corrupt. Does it update if you close the user control and main window, then build and reopen the main window? If so go with that.

          "You get that on the big jobs."

          T Offline
          T Offline
          TheFoZ
          wrote on last edited by
          #4

          That seems to be working thanks. Although I'm not sure if the Easter Break has done my PC some good. I'll make sure everything is update to. Hopefully my 2010 installation is causing any troubles. Cheers

          The FoZ

          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