Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh() vs. Invalidate()
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01051537
Message ID:
01051619
Views:
8
Viv,
Thank you for the reply. Are you using Refresh() or Invalidate() in your code?
I did a little more reading about Invalidate() and it appears that the control will not be redrawn until there is an open time-slice to redraw (unless you issue Update() immediately following the Invalidate()).
It appears that both methods work for my control.

Einar
>Hi,
>
>I think .Refresh() is the same as .Invalidate(true). If you only want to repaint part of the control you can use one of the other overloaded .Invalidate()'s.
>
>Regards,
>Viv
>
>>I have been calling Refresh() from a property's set in order to have my custom controls repainted. I did a little reading today and came accross the use of Invalidate() to force a repaint of a custom control.
>>Does anyone know what the pros and cons are regarding using Invalidate() vs. Refresh() to force a repaint of a custom control?
>>
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform