I would like to create a function that do some process, and then wait and let the user to click something on the screen. After the user click something, the function do the remain process. How to do it
e.g.
public void func()
{
.
.
.
do something
.
.
.
// Wait the user to click
.
.
.
do remain things
.
.
.
}
Thank you

Let the user input before do remaining process
Vizi
We need a *lot* more information before we can give you a good answer to this
Given the forum you've posted in, is the "do something" DirectX-related processing Is it purely CPU work (some maths/algorithms), graphics work (rendering a few frames/images), File I/O work, Audio work
Waiting for the user to click on the screen - are you using Win32 messages, DirectInput or something else Have you already got this code working
Also, what language are you working with I'm more of a C++ programmer but I (think I) know enough about .Net/C# to know that you'd probably end up with different code depending!
Post back with some more information and I (or someone else) might be able to give you a better answer.
hth
Jack
BeFa
I want to create a function that when the function is called, it calculates some of the data and then showing the data on the screen and ask the player to select a choice(by clicking a button in the Dialog). After a button is clicked, the Dialog disappeared and then the function continue to calculate data.
When I create Windows.Forms applications, this is very simple by using ShowDialog and DialogResult. But it seems that the Dialog in the sampleframework cannot do that.
Should I create dialogs in the Windows.Forms for the function