Is it considered a bad practice when someone performs complicated calculations in an event handler?
Does a calculation-cluttered .OnResize event handler has performance penalties?
If so how to make your way around them? (especially the .Print event, since thats what draws on e.Graphics)
It is not considered bad, not as such.
If your code feels cluttered, clean it up – refactor it.
Unless the event handler should be fast (say a
Paintevent handler), there is no problem in having it do lots of work.If you have very intensive calculations to do and still need to have a responsive UI, you need to run the calculations on a separate thread.