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
1878
Nodes disappear when performing changes in VS Designer
posted

Hi!

Today I wanted to change the left image on one of the nodes of an UltraTree and suddenly all nodes disappeared. I did an undo, tried it again with same result. Instead of changing the image I tried to add a new node but again, all nodes disappeared. I had this UltraTree for nearly 3 years now, last change has been a long time ago but there have never been problems. When I looked into the .Designer.cs part of the class I could see that VS Designer removed all nodes, the instance of UltraTree was still there.

I tried it with other UltraTrees in my project and all had the same behaviour. For testing I added an empty Form to my project and an UltraTree onto that Form and that worked, I could add nodes, images without a problem. I compared the working and not working forms and after a while I figured out that if one or several nodes also has a Key specified this causes the problem. When I removed the key from my main working class there where no problems, the other way around if I added a Key to one node in the test form the nodes disappeared! Unfortunately I need the keys so I cannot simply remove them.

I'm using NetAdvantage 10.2 in VS 2008 on Windows XP Professional but the behavior is the same on Windows 7, tried it on a colleague's machine. Looks like a bug to me.

Regards, Wolfgang

Parents Reply Children
No Data