Start the long running task in a backgound thread. UI will not freeze now.

But remember to stop the thread when you close your form