本文整理匯總了C#中System.Windows.Forms.ProgressBar.Hide方法的典型用法代碼示例。如果您正苦於以下問題:C# ProgressBar.Hide方法的具體用法?C# ProgressBar.Hide怎麽用?C# ProgressBar.Hide使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Windows.Forms.ProgressBar
的用法示例。
在下文中一共展示了ProgressBar.Hide方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: BatchSaveForUnitTests
private void BatchSaveForUnitTests()
{
var path = @"d:\Programs\Benchmarks\Fraps\Screenshots";
var pb = new ProgressBar();
pb.Maximum = 18;
pb.Dock = DockStyle.Bottom;
Controls.Add(pb);
pb.Show();
foreach (var file in Directory.GetFiles(path, "*.png"))
{
var bmp = Bitmap.FromFile(file) as Bitmap;
var result = Screenshot.GetTooltip(bmp, false);
if (result == null)
{
Debugger.Break();
return;
}
var tt = new D3Bit.Tooltip(result);
var r = new Results(tt);
pbItem.Image = tt.Processed;
SaveForUnitTests(r, result, bmp.Size);
pb.Increment(1);
Trace.TraceInformation("Saved " + r.Name);
bmp.Dispose();
}
pb.Hide();
MessageBox.Show("Done!");
}
示例2: addFileTransferRcv
private void addFileTransferRcv(string fileName, string userName)
{
iFileTransCntRcv++;
string sRCV = "RCV";
Label label = new Label();
label.Name = "lblFileTransfer" + sRCV + iFileTransCntRcv;
label.Text = fileName + "\n" + "전송대기";
ProgressBar progressBar = new ProgressBar();
progressBar.Name = "pgbFileTransfer" + sRCV + iFileTransCntRcv;
pnlFileListRcv.Controls.Add(label);
pnlFileListRcv.Controls.Add(progressBar);
label.Top = iLabelGap + iPnlHeightRcv;
label.Left = 3 + iPnlLeftRcv;
label.Height = 25;
label.BackColor = System.Drawing.Color.Aqua;
label.Font = new Font("굴림", 9, FontStyle.Regular);
progressBar.Top = iLabelGap + iPnlHeightRcv;
progressBar.Left = 3 + label.Left;
progressBar.Hide();
Button btnOk = new Button();
btnOk.Text = "수신";
btnOk.Click += new EventHandler(btnOkClick);
btnOk.Top = iLabelGap + iPnlHeightRcv;
btnOk.Left = 3 + label.Width;
btnOk.Height = 18;
btnOk.Width = 45;
btnOk.Font = new Font("굴림", 8, FontStyle.Regular);
Button btnCancel = new Button();
btnCancel.Text = "거부";
btnCancel.Click += new EventHandler(btnCancelClick);
btnCancel.Top = iLabelGap + iPnlHeightRcv;
btnCancel.Left = 3 + label.Width + btnOk.Width + 3;
btnCancel.Height = 18;
btnCancel.Width = 45;
btnCancel.Font = new Font("굴림", 8, FontStyle.Regular);
pnlFileListRcv.Controls.Add(btnOk);
pnlFileListRcv.Controls.Add(btnCancel);
btnOk.BringToFront();
btnCancel.BringToFront();
setShortFileName(label, fileName);
chatBox2.AppendText("Height=" + label.Height + " : Top=" + label.Top + "\n");
iPnlHeightRcv += label.Height;
if (!pnlFileStatus.Visible)
{
pnlFileStatus.Visible = true;
}
}