Why label2.Text in Form1 is not updating from the new class?
<p>In Form1 i have label2 in the designer and i added a code:</p>

<pre><code>public void lbl2(string text)
        {
            label2.Text = text;
        }
</code></pre>

<p>In the new class top i added:</p>

<pre><code>private static AnimationEditor.Form1 fr1 = new AnimationEditor.Form1();
</code></pre>

<p>And in the new class event im updating the label2.Text like this:</p>

<pre><code>int ISampleGrabberCB.BufferCB(double sampleTime, IntPtr pBuffer, int bufferLen)
        {
            using (var bitmap = new Bitmap(_width, _height, _width * 3, PixelFormat.Format24bppRgb, pBuffer))
            {
                bitmap.RotateFlip(RotateFlipType.Rotate180FlipX);
                if (SaveToDisc)
                {
                    String tempFile = _outFolder + _frameId + ".bmp";
                    if (File.Exists(tempFile))
                    {
                        fr1.lbl2(_frameId.ToString();
                    }
                    else
                    {
                        bitmap.Save(Path.Combine(_outFolder, _frameId + ".bmp"));
                    }
                    _frameId++;
                }
                else
                {
                    if (Images == null)
                        Images = new List&lt;Bitmap&gt;();
                    Images.Add((Bitmap)bitmap.Clone());
                }
            }
            return 0;
        }
</code></pre>

<p>Thel ine that is doing the updating is:</p>

<pre><code>fr1.lbl2(_frameId.ToString();
</code></pre>

<p>Now i used breakpoint on this line in the new class and also in Form1 on the label2.Text in the public function and i saw that the label2 text is changing first its 0 then 1 then 2 and so on.</p>

<p>But in fact in realtime when im running the application the label2 dosent change its all the time the text saty as label2</p>

<p>This is the Form1 button click event when i click on it its doing the new class code:</p>

<pre><code>private void button5_Click(object sender, EventArgs e)
        {
            wmv = new Polkan.DataSource.WmvAdapter(@"d:\VIDEO0040.3gp", sf);
            wmv.SaveToDisc = true;
            wmv.Start();
            wmv.WaitUntilDone();
        }
</code></pre>
