all groups > dotnet compact framework > september 2005 >
You're in the

dotnet compact framework

group:

strange refresh...


strange refresh... trini alla frutta
9/29/2005 4:47:48 PM
dotnet compact framework:
Hi all,
I've created a component extending Panel,
Currently when user clicks on it i would like to update the diaplayed
content according to the position where the click takes place.

So i've linked the MouseDown event to a event handler method where i
just update some values thanks to the x, y coordinates and then i call
invalidate on the component.

I'm experiencing a very stupid bug becouse the control begins to be
continuosly refreshed by itself without any point of the code calls the
invalidate method.

Could you give me some idea?

Thanks,
Re: strange refresh... Nick Randolph
10/1/2005 10:54:24 AM
Any chance you can post a sub-set of your code?

Also, you might want to override the paint event and look at the stack
trace - that will give you a good idea of what is causing the refresh

Nick


[quoted text, click to view]

AddThis Social Bookmark Button