Hi,
I am developing a system with c#.net. I have a simple application that create an excel book and write data which were retrieved from sql data base and save in hard disk. I want to show the prgress of data writing using a label. I use a thread function to display the progress with a lalbel. when i click the button, the thread is running but it the value is not shown in the label. but when the excel book creting function is completed then a value is displayed in the lebel. wht is wrong ?
here is the thread function...
{
value++;
}
private
Thread
trd.IsBackground =
trd.Start();
GenerateReport();
trd.Suspend();
oControl.Invoke(d,
System.Reflection.
p.SetValue(oControl, propValue,