Why textbox value not showing up immediately?
Posted on 2013-02-06
In my windows application the text box value not getting updated immediately. why ?
When i click the button2 i need to display given information in the text box.
But it is not displaying the value in the text box instead it's executing another method (below the text box )
and finally its displaying the value in the text box. Why the assigned values not showing in the text box immediately but it is executing another method ? I need to display the each every action to the user in the text box. How can i do this ?
private void button2_Click(object sender, EventArgs e)
textBox1.Text += Environment.NewLine + formatErrorMessage(" Connecting database....");
///getting the values from db
ftpValue = FtpValues();
assignFtpvalues(ftpValue);/// calling this method
textBox1.Text += Environment.NewLine + formatErrorMessage(" getting version information ....");