2024年5月31日发(作者:)
C#winform进度条(异步)窗体设计代码
主窗体:
namespace BackgroudWokerUI
{
partial class MainForm
{
///
/// Required designer variable.
///
private iner components = null;
///
/// Clean up any resources being used.
///
/// true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
e();
}
e(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
x1 = new x();
x2 = new x();
tton = new ();
ton = new ();
x = new x();
= new ();
Button = new ();
1 = new ();
2 = new ();
ckButton = new ();
dLayout();
//
// listBox1
//
tingEnabled = true;
ight = 12;
on = new (49, 44);
= "listBox1";
= new (120, 148);
ex = 0;
//
// listBox2
//
tingEnabled = true;
ight = 12;
on = new (224, 44);
= "listBox2";
= new (120, 148);
ex = 1;
//
// moveButton
//
on = new (186, 247);
= "moveButton";
= new (70, 26);
ex = 2;
= "Move";
+= new andler(tton_Click);
//
// addButton
//
on = new (94, 247);
= "addButton";
= new (75, 23);
ex = 5;
= "Add";
+= new andler(ton_Click);
//
// textBox
//
on = new (49, 220);
= "textBox";
= new (120, 21);
ex = 6;
//
// label
//
ze = true;
on = new (272, 220);
= "label";
= new (0, 0);
ex = 7;
//
// cancelButton
//
on = new (274, 296);
= "cancelButton";
= new (70, 26);
ex = 8;
= "Cancel";
+= new andler(Button_Click);
//
// label1
//
ze = true;
on = new (47, 9);
= "label1";
= new (28, 12);
ex = 9;
= "From";
//
// label2
//
ze = true;
on = new (222, 9);
= "label2";
= new (16, 12);
ex = 10;
= "To";
//
// moveBackButton
//
on = new (274, 247);
= "moveBackButton";
= new (70, 26);
ex = 11;
= "MoveBack";
+= new andler(ckButton_Click);
//
// MainForm
//
aleDimensions = new (6F, 12F);
aleMode = ;
Size = new (386, 359);
(ckButton);
(2);
(1);
(Button);
();
(x);
(ton);
(tton);
(x2);
(x1);
= "MainForm";
osition = Screen;
= "";
Layout(false);
mLayout();
}
#endregion
private x listBox1;
private x listBox2;
private moveButton;
private addButton;
private x textBox;
private label;
private cancelButton;
private label1;
private label2;
private moveBackButton;
}
}
进度条窗体:
//===============================================================================
// Microsoft patterns & practices
// CompositeUI Application Block
//===============================================================================
// Copyright ?Microsoft Corporation. All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================
namespace BackgroudWokerUI
{
partial class ProgressForm
{
///
/// Required designer variable.
///
private iner components = null;
///
/// Clean up any resources being used.
///
/// true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
e();
}
e(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
ssWork = new ssBar();
dLayout();
//
// progressWork
//
= ((Styles)((( |
)
| )));
on = new (12, 11);
= "progressWork";
= new (221, 21);
ex = 0;
//
// ProgressForm
//
aleDimensions = new (6F, 12F);
aleMode = ;
Size = new (245, 43);
(ssWork);
rderStyle = ingle;
= "ProgressForm";
osition = Screen;
= "ProgressForm";
Layout(false);
}
#endregion
private ssBar progressWork;
}
}


发布评论