as much as we know, programs are executing line by line, and now I am facing issue, I have a method which is taking few seconds to execute, I thought I could solve it by threads but I will speak about it later, now what I would like to do is next:
How could I open a window with message like "Still executing..." when that method start execution and when method is done window could close himself, I need that because I Would like to avoid UI freezing because that long method is not in another task/thread.
Here is how it looks like:
if (e.Key == Key.Delete)
{
//Could I show window here like like "Loading please wait.."
ExecuteLongMethod();
//When this is done close this method
}
Thanks guys, Cheers