is there a way to write a default text on a progressbar in C# ?
this isn't working in Form_Load, but works fine on button click...
using (Graphics gr = progressBar1.CreateGraphics())
{
StringFormat sf = new StringFormat(StringFormatFlags.NoWrap);
sf.Alignment = StringAlignment.Center;
gr.DrawString("hello world",
new Font("Arial", 10.0f, FontStyle.Regular),
new SolidBrush(Color.Black),
progressBar1.ClientRectangle,
sf);
}
thanks in advance