Ask a Question related to ASP.NET Building Controls, Design and Development.
-
dvietha@gmail.com #1
ActiveX .NET cannot update label's Text value?
Hi All,
I write an ActiveX containing a progress bar and a label by C#. When
running in IE, the progress bar is OK; but I cannot update the value of
label's Text.
Plz explain this problem for me
thanks,
HaDV
dvietha@gmail.com Guest
-
Use of text Boxes to programmatically update a PDF form
Hello all; I am a very experienced programmer but I do not have much experience with PDFs , Acrobat, etc. I have come up with what I believe... -
Flash Player 9 beta update woes (ActiveX/Win32)
Hello there, I believe the ActiveX beta upgrade (from 9.0.16 to 9.0.21b) is not yet working properly, at least not with systems which have FP 9... -
text field lookup/update?
I need to get advice on how to make a text field that not only updates an Access table with new entries, but also looks up existing entries in the... -
3D Text update
I would like to update the text of a 3D text model. I have tried to update it like this: 1- the "monhud" 3D text model is created with the... -
text & color in FH MX even in last update
Hi. Try this: (Using FH MX 11.0.2) Write something with text tool and convert it to path, then try to give a color to whole text. You can?t. You... -
dvietha@gmail.com #2
Re: ActiveX .NET cannot update label's Text value?
[email]dvietha@gmail.com[/email] wrote:Following is my code:> Hi All,
>
> I write an ActiveX containing a progress bar and a label by C#. When
> running in IE, the progress bar is OK; but I cannot update the value of
> label's Text.
>
> Plz explain this problem for me
>
> thanks,
> HaDV
for (int i=1; i <= totalFile; i++)
{
Thread.Sleep(this.SleepTime);
completedFile += 1;
lblProgress.Text = String.Format("{0} / {1}", completedFile,
totalFile);
progressBar.PerformStep();
}
dvietha@gmail.com Guest
-
dvietha@gmail.com #3
Re: ActiveX .NET cannot update label's Text value?
[email]dvietha@gmail.com[/email] wrote:I got it.> [email]dvietha@gmail.com[/email] wrote:>> > Hi All,
> >
> > I write an ActiveX containing a progress bar and a label by C#. When
> > running in IE, the progress bar is OK; but I cannot update the value of
> > label's Text.
> >
> > Plz explain this problem for me
> >
> > thanks,
> > HaDV
> Following is my code:
> for (int i=1; i <= totalFile; i++)
> {
> Thread.Sleep(this.SleepTime);
> completedFile += 1;
> lblProgress.Text = String.Format("{0} / {1}", completedFile,
> totalFile);
> progressBar.PerformStep();
> }
Adding lblProgress.Update() after lblProgress.Text = ... like below:
for (int i=1; i <= totalFile; i++)
{
Thread.Sleep(this.SleepTime);
completedFile += 1;
lblProgress.Text = String.Format("{0} / {1}", completedFile,
totalFile);
lblProgress.Update();
progressBar.PerformStep();
}
dvietha@gmail.com Guest



Reply With Quote

