my prob is that i have a for loop when someone clicks a button on the dialog, it goes like this:so i set a control with a int and it increases until it gets to 100. but this causes the programs proc to freeze until i gets to 100, so i was thinking somthing like createthread() might be necessary but that takes the ........ so is there anything else that could be a solution? another kind of msg proc perhaps?Code:for (int i=0;i<100;i++) { SetDlgItemInt(haha,haha,haha,i,haha); }