本文整理汇总了C#中System.Windows.Forms.FlowLayoutPanel.Show方法的典型用法代码示例。如果您正苦于以下问题:C# FlowLayoutPanel.Show方法的具体用法?C# FlowLayoutPanel.Show怎么用?C# FlowLayoutPanel.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.FlowLayoutPanel
的用法示例。
在下文中一共展示了FlowLayoutPanel.Show方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VwXls
public VwXls() {
InitializeComponent();
{
FlowLayoutPanel flp = flperr = new FlowLayoutPanel();
flp.Hide();
flp.Dock = DockStyle.Fill;
{
PictureBox pb = new PictureBox();
pb.Image = Resources.eventlogError.ToBitmap();
pb.SizeMode = PictureBoxSizeMode.AutoSize;
flp.Controls.Add(pb);
}
{
Label la = laerr1 = new Label();
la.AutoSize = true;
flp.Controls.Add(la);
flp.SetFlowBreak(la, true);
}
{
Label la = laerr2 = new Label();
la.AutoSize = true;
flp.Controls.Add(la);
}
flp.Parent = this;
}
{
TableLayoutPanel p = flpwip = new TableLayoutPanel();
p.Hide();
p.Dock = DockStyle.Fill;
p.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
p.RowStyles.Add(new RowStyle(SizeType.AutoSize));
{
FlowLayoutPanel flp = new FlowLayoutPanel();
flp.Anchor = AnchorStyles.None;
flp.AutoSize = true;
flp.AutoSizeMode = AutoSizeMode.GrowAndShrink;
flp.BackColor = Color.WhiteSmoke;
flp.ForeColor = Color.Black;
{
Label la = lawip = new Label();
la.AutoSize = true;
flp.Controls.Add(la);
flp.SetFlowBreak(la, true);
}
{
ProgressBar pb = new ProgressBar();
pb.Style = ProgressBarStyle.Marquee;
flp.Controls.Add(pb);
}
p.Controls.Add(flp);
flp.Show();
}
p.Parent = this;
}
Sync = SynchronizationContext.Current;
}
示例2: addProgressBarToTheWindow
private void addProgressBarToTheWindow()
{
FlowLayoutPanel f = new FlowLayoutPanel();
f.Size = new Size(5400, 30);
f.FlowDirection = FlowDirection.LeftToRight;
f.WrapContents = true;
f.HorizontalScroll.Visible = true;
f.VerticalScroll.Maximum = 0;
f.AutoScroll = true;
ProgressBar p = new ProgressBar();
p.Size = new Size(420, 24);
p.Maximum = 100;
p.Minimum = 0;
// p.Location = new Point(0, 0);
p.Value = 60;
p.Visible = true;
// p.Show();
f.Controls.Add(p);
Label l = new Label();
l.Text = p.Value.ToString() + "%";// +"vbdfkjvdfkjlvdfvdfbdkj.avi";
l.Visible = true;
l.Size = new Size(300, 24);
// l.Location = new Point(120, 0);
f.Controls.Add(l);
f.Show();
ProgressBars.Controls.Add(f);
}
示例3: addProgressBarToTheWindow
private void addProgressBarToTheWindow(FlowLayoutPanel progressBar)
{
FlowLayoutPanel f = new FlowLayoutPanel();
f.Size = new Size(5400, 30);
f.FlowDirection = FlowDirection.LeftToRight;
f.WrapContents = true;
f.HorizontalScroll.Visible = true;
f.VerticalScroll.Maximum = 0;
f.AutoScroll = true;
ProgressBar p = new ProgressBar();
p.Size = new Size(420, 24);
p.Maximum = 100;
p.Minimum = 0;
p.Value = 60;
p.Visible = true;
f.Controls.Add(p);
Label l = new Label();
l.Text = _name + " " + p.Value.ToString() + "%";
l.Visible = true;
l.Size = new Size(300, 24);
f.Controls.Add(l);
f.Show();
progressBar.Controls.Add(f);
}