private void statusBar1_DrawItem(object sender, System.Windows.Forms.StatusBarDrawItemEventArgs sbdevent)
{
    Font f=new Font("宋体",9);
            Brush brush=System.Drawing.Brushes.Black;
sbdevent.Graphics.DrawString("hehehehe",f,brush,new RectangleF(sbdevent.Bounds.X   + status_i,   sbdevent.Bounds.Y   +   2,   sbdevent.Bounds.Width,   sbdevent.Bounds.Height));
} private void timer1_Tick(object sender, System.EventArgs e)
{
Font   f   =   new   Font("宋体",9);     
Graphics   g   =   this.CreateGraphics();     
SizeF   siF   =   g.MeasureString("hehehehe",f);     
if (status_i>statusBarPanel2.Width)
{
status_i=(-((int)siF.Width));
}
else
status_i=status_i+5;
statusBar1.Refresh();
}