Treading and Paint

J

Jim Lewis

I have a simple worker thread that does "BeginInvoke(UpdateUI)". In
UpdateUI I have "panel.Refresh ()" which the debugger shows is
executed. Yet a breakpoint in the panel's Paint handler never gets
called. And the panel is never painted. Can someone clue me in why
Refresh does not cause a Paint?
 
N

Nicholas Paldino [.NET/C# MVP]

Jim,

You say "paint handler". Are you overriding the OnPaint method, or
attaching to the Paint event?
 
B

Bob Powell [MVP]

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

Top