當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。