label/textbox problem

dragonfly

Newcomer
Joined
Apr 3, 2003
Messages
2
i'm developing a C# windows application
for converting data from a database to another

during the conversion
i want to display the table name i'm converting
so, i try to use label/textbox

e.g.
//converting table 1
label.Text = "converting table1";
...
//converting table 2
label.Text = "converting table2";
...
//converting table n
...
//finished
label.Text = "FINISHED!!";

but none of them change the text during operation
the label / textbox change the text UNTIL the END of the conversion,

that is, the text displayed is always "FINISHED!!"

any method could force the text changes?
or any alternative i could use instead?

thanks in advance
 
Application.DoEvents will help you with this, if this doesn't works out you can try textBox1.Refresh after setting the text

// Sets text

textBox1.Text = "Hello";
textBox1.Refresh;

regards
 
Back
Top