Skip to content

VS Designer keeps resetting my properties

Rennest

Asked Sep 6, 2005, 8:36 AM EDT3 answers
Share
LinkedInX
It's really annoying, I have made a control which displays two boxes, which has two orienations - vertical or horizontal - which you can change by changing a property on the control in designer - which works fine. it compiles and runs fine and as I want However, then when you come back to the code, it has changed the orientation back to what it is by default. Unforuntalely the orientation changes the size of the control also, so it ends up completely wrecked I cannot think why it might be doing this. Anyone met it?

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    It's a well known bug of VS Designer. Some workarounds:
    - set property in code - in constructor of object for instance
    - if You are using Localizable=true (in Designer), some of .resx files lost Your properties. Set them manually or set Localizable=false, compile form and reset it to true.
    0
  • 0
    Damn, there's not even a patch or something?
    0
  • 0
    I don't know - I'm too lazy. Maybe somone else met this trouble?
    0