当前位置: 首页>>代码示例>>C#>>正文


C# FlowLayoutPanel.Show方法代码示例

本文整理汇总了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;
        }
开发者ID:windrobin,项目名称:kumpro,代码行数:59,代码来源:VwXls.cs

示例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);
        }
开发者ID:RajShahCrazy,项目名称:Humble-Video-Converter---Processor,代码行数:37,代码来源:Converter+Form.cs

示例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);
        }
开发者ID:RajShahCrazy,项目名称:Humble-Video-Converter---Processor,代码行数:32,代码来源:MediaFile.cs


注:本文中的System.Windows.Forms.FlowLayoutPanel.Show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。