Design Mode Property Update Help

  • Thread starter Thread starter David
  • Start date Start date
D

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?
 
Hi,

David said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top