>i am trying to make the program to ask user if he or she wants to continue
>when they click anywhere on the program.
That's extremely unconventional behavior. If I may offer a recommendation, how about using a progress bar and a cancel button? Naturally the encryption should be done in a separate thread so that the GUI is still usable. Not only is that easier that what you're asking, it's also what users will expect to see.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
>This is a really newb quest but how exactly do threads work.
It's not a newb question at all, so no worries. A thread is a thread of execution, which is a fancy way of saying that CPU time is divided between the running threads and each one is worked on in chunks. The net effect is that it appears as if multiple threads are executing simultaneously.
The nice thing about C# and .NET in general is that threads are dead easy to work with. Here is a tutorial introduction, and also a whole website that you should bookmark when working with .NET. :)
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401