Is there any way in VC++ to force the dialog/window to update itself while it is executing button code? For example if I wanted to have "Connect" button and when you click it a text box says "Initializing Connection", but every one second adds a period onto it "Initializing Connection." "Initializing Connection.." etc, etc. Basically the periods just signify the program is running and doing something. I set this up in a for loop but I realized that the window doesn't seem to update at all until ALL the code attached to the button is executed. Is there any way around this? Here is some code to get an idea of what I'm trying to do:

Code:
private: System::Void bConnect_Click(System::Object^  sender, System::EventArgs^  e) {				
				 String ^init_msg;

                                  rOutput->Text = "Test 123";

				 //Init. Connection//
				 StringBuilder^ sb = gcnew StringBuilder();
				 for(int i = 0; i < 10; i++){
					 sb = sb->Append(".");
					 init_msg = "Initializing Connection";
					 init_msg += sb->ToString();
					 rOutput->Text = init_msg;
					 Sleep(1000);
				 }
				 ////////////////////
			 }
rOutput is obviously the textbox I am trying to output to. The code above doesn't show anything until 10 seconds when it shows "Initializing Connection.........."

thanks