Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted

About 10 posts down is this thread. Covers the same question you have.

 

-nerseus

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted

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

Fat kids are harder to kidnap

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...