如何在statusbar上添加ProgressBar? http://www.codeproject.com/vb/net/ProgressStatus.aspEmbed a Progressbar in your Statusbar 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ProgressBar in Status Barusing 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(); }}/// yueyue19850119,看来你一生下来就能c,是否杂交? 如何解决:分布式事务处理协调器已取消此分布式事务? 求指导,关于窗体中控件具有窗体标题栏同样功能的做法(最大、最小、移动窗体) 水晶报表每页行数问题。急急 多线程中高性能的界面更新的源代码 关于页面传值并显示的问题,急!在线等待 请教大家:我用winform写了软件,想向网站上的页面提交参数. 图片输出到Excel问题。 关于一个水晶报表的棘手问题 关于打印,郁闷啊 #endregion这个#代表什么意思 c#比vc.net怎么样? 急!急!急!急!帮我看看代码!! 在线等~~~~
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(); }}///