進度條控制項

2021-06-06 05:22:22 字數 2406 閱讀 4367

base.dispose(disposing);

}#region windows 窗體設計器生成的**

///

/// 設計器支援所需的方法 - 不要

/// 使用**編輯器修改此方法的內容。

///

private void initializecomponent()

{this.progressbar1 = new system.windows.forms.progressbar();

this.button1 = new system.windows.forms.button();

this.label1 = new system.windows.forms.label();

this.suspendlayout();

// // progressbar1

// this.progressbar1.location = new system.drawing.point(23, 42);

this.progressbar1.name = "progressbar1";

this.progressbar1.size = new system.drawing.size(686, 23);

this.progressbar1.tabindex = 0;

this.progressbar1.visible = false;

// // button1

// this.button1.location = new system.drawing.point(621, 110);

this.button1.name = "button1";

this.button1.size = new system.drawing.size(75, 23);

this.button1.tabindex = 2;

this.button1.text = "讀取資料庫資訊";

this.button1.usevisualstylebackcolor = true;

this.button1.click += new system.eventhandler(this.button1_click);

// // label1

// this.label1.anchor = ((system.windows.forms.anchorstyles)((((system.windows.forms.anchorstyles.top | system.windows.forms.anchorstyles.bottom)

| system.windows.forms.anchorstyles.left)

| system.windows.forms.anchorstyles.right)));

this.label1.autosize = true;

this.label1.font = new system.drawing.font("宋體", 48f, system.drawing.fontstyle.regular, system.drawing.graphicsunit.point, ((byte)(134)));

this.label1.location = new system.drawing.point(23, 79);

this.label1.name = "label1";

this.label1.size = new system.drawing.size(60, 64);

this.label1.tabindex = 3;

this.label1.text = "0";

this.label1.textalign = system.drawing.contentalignment.middlecenter;

// // 讀資料庫

// this.autoscaledimensions = new system.drawing.sizef(6f, 12f);

this.autoscalemode = system.windows.forms.autoscalemode.font;

this.clientsize = new system.drawing.size(731, 167);

this.controls.add(this.label1);

this.controls.add(this.button1);

this.controls.add(this.progressbar1);

this.maximizebox = false;

this.minimizebox = false;

this.name = "讀資料庫";

this.startposition = system.windows.forms.formstartposition.centerscreen;

this.text = "form1";

this.topmost = tru

進度條控制項

當我們在做乙個大大小小的專案的時候,可能會遇到顯示乙個進度或百分比的問題,如果只用乙個數字表示給客戶帶來的是很死板的感覺。如果用乙個進度條來表示就會使客戶一目了然了,還很形象。下面是我的進度條控制項 7toolboxdata hbprocessbar 8public class hbprocessb...

控制項 CProgressCtrl 進度條

進度條控制項 使用進度條顯示操作進度 進度條控制項封裝在cprogressctrl類中。1 setrange和setrange32方法用來設定進度條顯示範圍。語法格式 void setrange short nlower,short nupper void setrange32 int nlower...

UIProgressView進度條控制項

建立進度條控制項 progress uiprogressview alloc initwithframe cgrectmake 0,40,320,1 設定進度條軌跡顏色相當於背景顏色 progress tracktintcolor uicolor blackcolor 設定進度條顏色 progres...