ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Hosting Windows Forms Controls in COM Control Containers
Subject:   Cannot update label.Text value in ActiveX Dot Net?
Date:   2006-08-02 21:21:36
From:   HaDV
I write an ActiveX containing a progressbar and a label by C#. But when ruuning it from IE; the progressbar is OK, but the label's Text cannot be updated. Following is the code:
for (int i=1; i <= totalFile; i++)
{
Thread.Sleep(this.SleepTime);
completedFile += 1;
lblProgress.Text = String.Format("{0} / {1}", completedFile, totalFile);
progressBar.PerformStep();
}


Plz explain this problem for me.


thanks,
HaDV