我想创建一个带有进度条的表单.表单没有任何按钮.它只有一个进度条来显示进程进度的百分比.
抱歉,但我无法发布表单的图片.
请告诉我怎么做这个.
如果你想以编程方式创建它,那么你可以重新创建设计师为你预先构建的代码,并根据你的需要调整它,就像这样;
this.progressLoadingBar = new System.Windows.Forms.ProgressBar();
this.progressLoadingBar.Location = new System.Drawing.Point(10, 227);
this.progressLoadingBar.Name = "progressLoadingBar";
this.progressLoadingBar.Size = new System.Drawing.Size(100, 23);
this.progressLoadingBar.TabIndex = 9;
this.Controls.Add(this.progressLoadingBar);
Run Code Online (Sandbox Code Playgroud)
这里.只需确保"this"是表单的上下文.如果你想进一步调整,使用intellisense并查看你的选项,否则谷歌是你最好的朋友,可以在这里找到MSDN页面:
http://msdn.microsoft.com/en-us/library/system.windows.forms.progressbar.aspx
| 归档时间: |
|
| 查看次数: |
234 次 |
| 最近记录: |