Mike Lewis
Programmer
Hi All,
I am using C# Express. I am fairly new to C# and .NET, and have just finished a small one-form application.
My problem is that I can't get the label in my status strip to work.
I placed a status strip control on the form, and used its built-in Add button to add a label and a progresss bar. The controls are named ssStatus, ssLabel and ssProgress respectively.
In my program's main loop, I call a routine to update the pogress display:
I can see the progress bar being correctly updated, but I don't see any text in the label. I've used the debugger to check that the label's Visible is True, and that it's wide enough to hold my text. And if I set the label's text at design time, it shows up correctly.
Can anyone see what I am doing wrong?
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk
I am using C# Express. I am fairly new to C# and .NET, and have just finished a small one-form application.
My problem is that I can't get the label in my status strip to work.
I placed a status strip control on the form, and used its built-in Add button to add a label and a progresss bar. The controls are named ssStatus, ssLabel and ssProgress respectively.
In my program's main loop, I call a routine to update the pogress display:
Code:
// Update the progress bar and label
ssStatus.Visible = true;
ssLabel.Text = "Processing " + nCount.ToString();
ssProgress.Minimum = 0;
ssProgress.Maximum = tnMax;
ssProgress.Value = tnCount;
I can see the progress bar being correctly updated, but I don't see any text in the label. I've used the debugger to check that the label's Visible is True, and that it's wide enough to hold my text. And if I set the label's text at design time, it shows up correctly.
Can anyone see what I am doing wrong?
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk