http://www.codeproject.com/vb/net/ProgressStatus.aspEmbed a Progressbar in your Statusbar

解决方案 »

  1.   

    ProgressBar in Status Bar
    using System.Windows.Forms;using System;using System.Drawing;class MyApp : Form{    ProgressBar pbar = new ProgressBar();    StatusBarPanel ProgressPanel = new StatusBarPanel();    public MyApp()    {        StatusBar sb = new StatusBar();        sb.Parent = this;        sb.ShowPanels = true;        StatusBarPanel panel1 = new StatusBarPanel();        panel1.AutoSize = StatusBarPanelAutoSize.Contents;        panel1.Text = "Mein Text";        sb.Panels.Add(panel1);        ProgressPanel .AutoSize = StatusBarPanelAutoSize.Spring;        sb.Panels.Add(ProgressPanel );        pbar.Value = 30;        pbar.Parent = sb;        pbar.Width = ProgressPanel.Width;        pbar.Location = new Point(panel1.Width, 0);    }    protected override void OnResize(EventArgs ea)    {        base.OnResize(ea);        pbar.Width = ProgressPanel.Width;    }    public static void Main()    {       MyApp f = new MyApp();        f.ShowDialog();    }}///
     
      

  2.   

    yueyue19850119,看来你一生下来就能c,是否杂交?