User Control Focus Issues

  • Thread starter Thread starter Hrrglburf
  • Start date Start date
H

Hrrglburf

This is driving me nuts...
Anyone have a clue why when a user control is focused, this.Focus(),
that child controls under the same container do not get
redrawn/updated? am I the only one experiencing this?
 
To redraw the control you can use Control.Refresh() or Control.Invalidate()
method.
 
Nevermind, found my own answer...
the problem was for my fancy mouse handling events that changed the way
the control looked were calling this.Invalidate().
they should have been calling this.Refresh();
 

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