By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,989 Members | 1,475 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,989 IT Pros & Developers. It's quick & easy.

User Control Focus Issues

P: n/a
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?

Mar 28 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
To redraw the control you can use Control.Refresh() or Control.Invalidate()
method.

Mar 28 '06 #2

P: n/a
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();

Mar 28 '06 #3

P: n/a
lol just saw the message after I posted. thx tho!

Mar 28 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.