Posted By

ronklein on 01/10/11


Tagged

control ui


Versions (?)

Refresh Controls to the root


 / Published in: C#
 

  1. public static class ControlExt
  2. {
  3. public static void RefreshToRoot(this Control control)
  4. {
  5. if (null == control)
  6. return;
  7. control.Refresh();
  8. RefreshToRoot(control.Parent);
  9. }
  10. }

Report this snippet  

You need to login to post a comment.