strange refresh...

  • Thread starter Thread starter trini alla frutta
  • Start date Start date
T

trini alla frutta

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,
Giorgio.
 
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
 

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