Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
575
Code generation for property 'Image' failed
posted

After upgrading my solution from 2008 to Visual Studio .Net 2010, the Winforms designer chokes on any image properties on UltraToolbars. This is true if any designer changes are made to the form, not just changes to an UltraToolBarManager.  Results in all images being removed.  See attached images

 

 

Parents
  • 128
    Suggested Answer
    posted

    I almost did forget though... the easy fix for this is to Save the Configuration of the toolbar out (I use XML).  Then delete the toolbar, move the controls, inside the panel, outside of the panel and delete the panel it leaves on the form, then move the controls back on the form (DO NOT COPY AND PASTE the controls only move them) with the appropriate alignment and re-add a new toolbar.

    Once the toolbar is added, load the saved configuration and rename the toolbar back to the old name.  Lastly, reconnect the events which were broke when you deleted the original toolbar and you will be fine. 

    If you were wondering.... yes, it happened again today but was hoping for a more elegant fix but at least this is easy.

    regards,
    Dave

Reply Children