You are viewing our Forum Archives. To view or take place in current topics click here.
I have a quick C# question
Posted:

I have a quick C# questionPosted:

ProJimmyRustler
  • 2 Million
Status: Offline
Joined: Jul 14, 20149Year Member
Posts: 1,720
Reputation Power: 71
Status: Offline
Joined: Jul 14, 20149Year Member
Posts: 1,720
Reputation Power: 71
I'm working on a program right now in C# and I need some help.
I want to know how I can pause the program from doing something, without freezing the program.

The only good example I can think of to explain this is the "wait" that you use in C++ for Call of Duty menus.

I know there is Thread.Sleep, but the pauses the program. I can't have it do that.
#2. Posted:
vSmithy
  • TTG Natural
Status: Offline
Joined: Jan 30, 201014Year Member
Posts: 935
Reputation Power: 45
Status: Offline
Joined: Jan 30, 201014Year Member
Posts: 935
Reputation Power: 45
You'll need to use a separate thread. If you pause the main thread, which also draws the GUI, it will freeze the program.

Easiest way to multithread is with backgroundworkers. Google it, there's plenty of good tutorials.
#3. Posted:
0xCuddz
  • New Member
Status: Offline
Joined: Aug 31, 20149Year Member
Posts: 18
Reputation Power: 0
Status: Offline
Joined: Aug 31, 20149Year Member
Posts: 18
Reputation Power: 0
It depends on what you're trying to do. So what's the context?
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.