Home All Groups Group Topic Archive Search About

Design Mode Property Update Help

Author
6 Jan 2006 6:13 PM
David
Im having trouble tracking down a solution for the following. I have
two properties on a custom textbox control I'm creating. If you change
the value in PropertyA it may in code change the value of PropertyB.
That works fine, however in design mode PropertyB's value is not shown
updated until you click on it to edit it.

Is there a way I can force the design mode to be updated immediately
after a code change like this?

Author
6 Jan 2006 9:51 PM
Bart Mermuys
Hi,

"David" <thec***@gmail.com> wrote in message
news:1136571196.502468.41010@g44g2000cwa.googlegroups.com...
> Im having trouble tracking down a solution for the following. I have
> two properties on a custom textbox control I'm creating. If you change
> the value in PropertyA it may in code change the value of PropertyB.
> That works fine, however in design mode PropertyB's value is not shown
> updated until you click on it to edit it.
>
> Is there a way I can force the design mode to be updated immediately
> after a code change like this?
>

Put a RefreshPropertiesAttribute (System.ComponentModel) before PropertyA,
eg.:

<RefreshProperties(RefreshProperties.Repaint)> _
Public Property PropertyA() As Integer
  ...
End Property

HTH,
Greetings