locked
Refreshing properties at design time RRS feed

  • Question

  • Hi,

    I'm making my first component in .net, it calls CurrencyEdit and it is a TextBox, like this:

    public partial class CurrencyEdit : TextBox

    {

    ...

    }

    In  this component i have a property called Value that set/return a double value. At design time, if i change the Text property (on Properties editor), the Value property doesn't changes, but if i select the Value property, it (Value property) updates to the rigth value. The same thing happens when i change then value of the Value property, the Text property doesn't updates, but if select the Text property, it updates. At run time it works fine, my problem is at design time. I need to refresh all properties when i change one.

    Thanks,

    Alessandro Moacyr Duarte.

     

    Sunday, February 19, 2006 5:59 PM

Answers

  • I used this code and it fix my problem

    [RefreshProperties(RefreshProperties.Repaint)]

     

    Tuesday, February 21, 2006 12:50 AM