ActiveX .NET cannot update label's Text value?

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: ActiveX .NET cannot update label's Text value?


    [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();
    }

    dvietha@gmail.com Guest

  4. #3

    Default Re: ActiveX .NET cannot update label's Text value?


    [email]dvietha@gmail.com[/email] wrote:
    > [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();
    > }
    I got it.

    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139