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


C# StatusStrip.PerformLayout方法代码示例

本文整理汇总了C#中System.Windows.Forms.StatusStrip.PerformLayout方法的典型用法代码示例。如果您正苦于以下问题:C# StatusStrip.PerformLayout方法的具体用法?C# StatusStrip.PerformLayout怎么用?C# StatusStrip.PerformLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Windows.Forms.StatusStrip的用法示例。


在下文中一共展示了StatusStrip.PerformLayout方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InitializeComponent


//.........这里部分代码省略.........
   mapImage.Name = "mapImage";
   mapImage.Size = new Size(512, 512);
   mapImage.SizeMode = PictureBoxSizeMode.Zoom;
   mapImage.TabIndex = 0;
   mapImage.TabStop = false;
   mapImage.MouseClick += new MouseEventHandler(mapImage_Click);
   mapImage.MouseDown += new MouseEventHandler(mapImage_Down);
   mapImage.MouseEnter += new EventHandler(mapImage_MouseEnter);
   mapImage.MouseLeave += new EventHandler(mapImage_MouseLeave);
   mapImage.MouseMove += new MouseEventHandler(mapImage_MouseMove);
   mapImage.MouseUp += new MouseEventHandler(mapImage_Up);
   // 
   // height
   // 
   height.DropDownStyle = ComboBoxStyle.DropDownList;
   height.FlatStyle = FlatStyle.Flat;
   height.Location = new Point(380, 27);
   height.Name = "height";
   height.Size = new Size(100, 21);
   height.TabIndex = 2;
   height.SelectedIndexChanged += new EventHandler(height_ValueChanged);
   // 
   // cmbBlocks
   // 
   cmbBlocks.DrawMode = DrawMode.OwnerDrawFixed;
   cmbBlocks.DropDownStyle = ComboBoxStyle.DropDownList;
   cmbBlocks.FlatStyle = FlatStyle.Flat;
   cmbBlocks.FormattingEnabled = true;
   cmbBlocks.Location = new Point(0, 27);
   cmbBlocks.Name = "cmbBlocks";
   cmbBlocks.Size = new Size(187, 21);
   cmbBlocks.TabIndex = 5;
   for( i = 0; i < 256; i++ )
    height.Items.Add( "" + ( i + 1 ));
   cmbBlocks.SelectedIndexChanged += new EventHandler(cmbBlocks_SelectedIndexChanged);
   // 
   // cmbPaint
   // 
   cmbPaint.DrawMode = DrawMode.OwnerDrawFixed;
   cmbPaint.DropDownStyle = ComboBoxStyle.DropDownList;
   cmbPaint.FlatStyle = FlatStyle.Flat;
   cmbPaint.FormattingEnabled = true;
   cmbPaint.Location = new Point(190, 27);
   cmbPaint.Name = "cmbPaint";
   cmbPaint.Size = new Size(187, 21);
   cmbPaint.TabIndex = 5;
   cmbPaint.SelectedIndexChanged += new EventHandler(cmbPaint_SelectedIndexChanged);
   // 
   // toolStripSeparator2
   // 
   toolStripSeparator2.Name = "toolStripSeparator2";
   toolStripSeparator2.Size = new Size(149, 6);
   // 
   // undoMenu
   // 
   undoMenu.Name = "undoMenu";
   undoMenu.ShortcutKeys = ((Keys)((Keys.Control | Keys.Z)));
   undoMenu.Size = new Size(152, 22);
   undoMenu.Text = "&Undo";
   undoMenu.Click += new EventHandler(undoMenu_Click);
   // 
   // redoMenu
   // 
   redoMenu.Name = "redoMenu";
   redoMenu.ShortcutKeys = ((Keys)((Keys.Control | Keys.Y)));
   redoMenu.Size = new Size(152, 22);
   redoMenu.Text = "&Redo";
   redoMenu.Click += new EventHandler(redoMenu_Click);
   // 
   // frmMain
   // 
   BackColor = Color.LightGray;
   ClientSize = new Size(528, 623);
   Controls.Add(cmbBlocks);
   Controls.Add(cmbPaint);
   Controls.Add(statusStrip1);
   Controls.Add(height);
   Controls.Add(menuStrip1);
   Controls.Add(pnlImage);
   FormClosing += new FormClosingEventHandler( frmMain_Closing );
   Icon = Icon.FromHandle( icon.GetHicon());
   file.Close();
   Location = new Point(( Screen.PrimaryScreen.Bounds.Width - Width ) / 2,
                        ( Screen.PrimaryScreen.Bounds.Height - Height ) / 2 );
   MainMenuStrip = menuStrip1;
   Move += new EventHandler(frmMain_SizeChanged);
   Name = "frmMain";
   StartPosition = FormStartPosition.Manual;
   Text = "Creative Mode+";
   SizeChanged += new EventHandler(frmMain_SizeChanged);
   menuStrip1.ResumeLayout(false);
   menuStrip1.PerformLayout();
   statusStrip1.ResumeLayout(false);
   statusStrip1.PerformLayout();
   pnlImage.ResumeLayout(false);
   ((System.ComponentModel.ISupportInitialize)(mapImage)).EndInit();
   ResumeLayout(false);
   PerformLayout();

  }
开发者ID:InTheSPOT,项目名称:creative-mode-plus,代码行数:101,代码来源:main.Designer.cs

示例2: InitializeGUI


//.........这里部分代码省略.........
            mMenuItemDepthSnapping.CheckOnClick = true;
            mMenuItemDepthSnapping.Click += new System.EventHandler(mMenuItemSnapping_Click);

            mEditorContextMenu = new ContextMenuStrip(new System.ComponentModel.Container());
            /************************************************************************
             * TODO:
             * Add images to the context menu items.
             *
             * Jay Sternfield	-	2011/11/16
             ************************************************************************/
            mContextItemLoadPrefab = new ToolStripMenuItem("Load Prefab");
            mContextItemAddTrigger = new ToolStripMenuItem("Add Trigger");
            mContextItemAddParticle = new ToolStripMenuItem("Add Particle");
            //mContextItemEditComponents = new ToolStripMenuItem("Edit Components");
            mContextItemLoadPrefab.Click += new System.EventHandler(mContextItemLoadPrefab_Click);
            mContextItemAddTrigger.Click += new System.EventHandler(mContextItemAddTrigger_Click);
            mContextItemAddParticle.Click += new System.EventHandler(mContextItemAddParticle_Click);
            //mContextItemAddParticle.Click += new System.EventHandler(mContextItemAddParticle_Click);
            //mContextItemAddParticle.Click += new System.EventHandler(mContextItemAddParticle_Click);
            mEditorContextMenu.SuspendLayout();
            mEditorContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                mContextItemLoadPrefab, mContextItemAddTrigger, mContextItemAddParticle});
            mEditorContextMenu.Name = "mEditorContextMenu";
            mEditorContextMenu.Size = new System.Drawing.Size(200, 28);
            mEditorContextMenu.MouseLeave += new EventHandler(mEditorContextMenu_MouseLeave);

            mObjectPanel = new Panel();
            mObjectPanel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
            mObjectPanel.Size = new System.Drawing.Size(240, FNA.Game_cl.BaseInstance.WindowHeight - 22);
            mObjectPanel.Dock = DockStyle.Left;
            Panel titlePanel = new Panel();
            titlePanel.Dock = DockStyle.Top;
            titlePanel.Size = new System.Drawing.Size(mObjectPanel.Width, 22);
            Label titleLabel = new Label();
            titleLabel.Dock = DockStyle.Fill;
            titleLabel.Text = "Object Panel";
            titlePanel.Controls.Add(titleLabel);
            mObjectPanelTree = new TreeView();
            mObjectPanelTree.Dock = DockStyle.Fill;
            //mObjectPanelTree.AllowDrop = true;
            mObjectPanelTree.HideSelection = false;
            mObjectPanelTree.DoubleClick += new EventHandler(mObjectPanelTree_DoubleClick);
            mObjectPanelTree.AfterSelect += new TreeViewEventHandler(mObjectPanelTree_AfterSelect);
            //Splitter midSplitter = new Splitter();
            //midSplitter.BackColor = System.Drawing.Color.DarkGray;
            //midSplitter.Dock = DockStyle.Bottom;
            mObjectPanelSplitter = new Splitter();
            mObjectPanelSplitter.Dock = DockStyle.Right;
            mObjectPanelSplitter.SplitPosition = mObjectPanel.Width - 4;
            mObjectPanelSplitter.MouseDown += new MouseEventHandler(mObjectPanelSplitter_MouseDown);
            mObjectPanelSplitter.MouseUp += new MouseEventHandler(mObjectPanelSplitter_MouseUp);

            mObjectPanel.Controls.Add(mObjectPanelTree);
            mObjectPanel.Controls.Add(titlePanel);
            //mObjectPanel.Controls.Add(midSplitter);
            mObjectPanel.Controls.Add(mObjectPanelSplitter);

            mPrefabPanel = new Panel();
            mPrefabPanel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
            mPrefabPanel.Size = new System.Drawing.Size(240, FNA.Game_cl.BaseInstance.WindowHeight - 22);
            mPrefabPanel.Dock = DockStyle.Right;
            mPrefabPanelTree = new TreeView();
            mPrefabPanelTree.Dock = DockStyle.Fill;
            //mPrefabPanelTree.AllowDrop = true;
            mPrefabPanelTree.HideSelection = false;
            mPrefabPanelTree.MouseDown += new MouseEventHandler(mPrefabPanelTree_MouseDown);
            mPrefabPanelTree.MouseClick += new MouseEventHandler(mPrefabPanelTree_MouseClick);

            titlePanel = new Panel();
            titlePanel.Dock = DockStyle.Top;
            titlePanel.Size = new System.Drawing.Size(mPrefabPanel.Width, 22);
            titleLabel = new Label();
            titleLabel.Dock = DockStyle.Fill;
            titleLabel.Text = "Prefab Panel";
            titlePanel.Controls.Add(titleLabel);

            mPrefabPanelSplitter = new Splitter();
            mPrefabPanelSplitter.Dock = DockStyle.Left;
            mPrefabPanelSplitter.SplitPosition = 4;
            mPrefabPanelSplitter.MouseDown += new MouseEventHandler(mPrefabPanelSplitter_MouseDown);
            mPrefabPanelSplitter.MouseUp += new MouseEventHandler(mPrefabPanelSplitter_MouseUp);

            mPrefabPanel.Controls.Add(mPrefabPanelTree);
            mPrefabPanel.Controls.Add(titlePanel);
            mPrefabPanel.Controls.Add(mPrefabPanelSplitter);

            windowForm.Controls.Add(mEditorMenuStrip);
            windowForm.Controls.Add(mEditorStatusStrip);
            windowForm.Controls.Add(mObjectPanel);
            windowForm.Controls.Add(mPrefabPanel);

            windowForm.MainMenuStrip = mEditorMenuStrip;
            windowForm.ContextMenuStrip = mEditorContextMenu;

            mEditorMenuStrip.ResumeLayout(false);
            mEditorMenuStrip.PerformLayout();
            mEditorStatusStrip.ResumeLayout(false);
            mEditorStatusStrip.PerformLayout();
            mEditorContextMenu.ResumeLayout(false);
        }
开发者ID:IDGASoft,项目名称:Molydeux,代码行数:101,代码来源:WorldEditor.cs

示例3: InitializeComponent


//.........这里部分代码省略.........
   toolStripStatusLabel.Size = new Size(0, 17);
   // 
   // buttonDetectBoxType
   // 
   buttonDetectBoxType.Anchor = (((AnchorStyles.Bottom | AnchorStyles.Left)));
   buttonDetectBoxType.Location = new Point(8, 144);
   buttonDetectBoxType.Name = "buttonDetectBoxType";
   buttonDetectBoxType.Size = new Size(104, 24);
   buttonDetectBoxType.TabIndex = 10;
   buttonDetectBoxType.Text = "Redetect box";
   buttonDetectBoxType.UseVisualStyleBackColor = true;
   buttonDetectBoxType.Click += buttonDetectBoxType_Click;
   // 
   // labelTimeout
   // 
   labelTimeout.Location = new Point(8, 80);
   labelTimeout.Name = "labelTimeout";
   labelTimeout.Size = new Size(80, 20);
   labelTimeout.TabIndex = 11;
   labelTimeout.Text = "Timeout:";
   labelTimeout.TextAlign = ContentAlignment.MiddleLeft;
   // 
   // numericUpDownTimeout
   // 
   numericUpDownTimeout.Anchor = ((((AnchorStyles.Top | AnchorStyles.Left)
                                    | AnchorStyles.Right)));
   numericUpDownTimeout.Increment = new decimal(new int[]
                                                  {
                                                    500,
                                                    0,
                                                    0,
                                                    0
                                                  });
   numericUpDownTimeout.Location = new Point(88, 80);
   numericUpDownTimeout.Maximum = new decimal(new int[]
                                                {
                                                  60000,
                                                  0,
                                                  0,
                                                  0
                                                });
   numericUpDownTimeout.Minimum = new decimal(new int[]
                                                {
                                                  1000,
                                                  0,
                                                  0,
                                                  0
                                                });
   numericUpDownTimeout.Name = "numericUpDownTimeout";
   numericUpDownTimeout.Size = new Size(144, 20);
   numericUpDownTimeout.TabIndex = 12;
   numericUpDownTimeout.TextAlign = HorizontalAlignment.Center;
   numericUpDownTimeout.Value = new decimal(new int[]
                                              {
                                                2000,
                                                0,
                                                0,
                                                0
                                              });
   // 
   // labelMilliseconds
   // 
   labelMilliseconds.Anchor = (((AnchorStyles.Top | AnchorStyles.Right)));
   labelMilliseconds.Location = new Point(232, 80);
   labelMilliseconds.Name = "labelMilliseconds";
   labelMilliseconds.Size = new Size(32, 20);
   labelMilliseconds.TabIndex = 13;
   labelMilliseconds.Text = "ms";
   labelMilliseconds.TextAlign = ContentAlignment.MiddleCenter;
   // 
   // SetupForm
   // 
   ClientSize = new Size(272, 199);
   Controls.Add(labelMilliseconds);
   Controls.Add(numericUpDownTimeout);
   Controls.Add(labelTimeout);
   Controls.Add(buttonDetectBoxType);
   Controls.Add(statusStrip);
   Controls.Add(buttonGetData);
   Controls.Add(buttonCancel);
   Controls.Add(buttonOK);
   Controls.Add(labelIpAddress);
   Controls.Add(textBoxIpAddress);
   Controls.Add(labelUserName);
   Controls.Add(textBoxUserName);
   Controls.Add(textBoxPassword);
   Controls.Add(labelPassword);
   FormBorderStyle = FormBorderStyle.FixedSingle;
   MinimizeBox = false;
   MinimumSize = new Size(278, 200);
   Name = "SetupForm";
   ShowIcon = false;
   StartPosition = FormStartPosition.CenterScreen;
   Text = "Dbox Tuner Setup";
   statusStrip.ResumeLayout(false);
   statusStrip.PerformLayout();
   ((ISupportInitialize) (numericUpDownTimeout)).EndInit();
   ResumeLayout(false);
   PerformLayout();
 }
开发者ID:astalavister,项目名称:IR-Server-Suite,代码行数:101,代码来源:SetupForm.cs

示例4: InitializeComponent


//.........这里部分代码省略.........
     silverMonkeyFCTB1.IsReplaceMode = false;
     silverMonkeyFCTB1.Language = FastColoredTextBoxNS.Language.SQL;
     silverMonkeyFCTB1.LeftBracket = '(';
     silverMonkeyFCTB1.Location = new Point(3, 3);
     silverMonkeyFCTB1.Name = "silverMonkeyFCTB1";
     silverMonkeyFCTB1.Paddings = new Padding(0);
     silverMonkeyFCTB1.RightBracket = ')';
     silverMonkeyFCTB1.SelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
     silverMonkeyFCTB1.ServiceColors = ((ServiceColors)(resources.GetObject("silverMonkeyFCTB1.ServiceColors")));
     silverMonkeyFCTB1.Size = new Size(532, 116);
     silverMonkeyFCTB1.TabIndex = 0;
     silverMonkeyFCTB1.Zoom = 100;
     //
     // SqlResultsListView
     //
     SqlResultsListView.Dock = DockStyle.Fill;
     SqlResultsListView.FullRowSelect = true;
     SqlResultsListView.GridLines = true;
     SqlResultsListView.LabelEdit = true;
     SqlResultsListView.LargeImageList = ToolBarImages;
     SqlResultsListView.Location = new Point(0, 0);
     SqlResultsListView.Name = "SqlResultsListView";
     SqlResultsListView.Size = new Size(556, 171);
     SqlResultsListView.TabIndex = 0;
     SqlResultsListView.UseCompatibleStateImageBehavior = false;
     SqlResultsListView.View = View.Details;
     //
     // tabControl1
     //
     tabControl1.Controls.Add(tabPage2);
     tabControl1.Controls.Add(tabPage3);
     tabControl1.Dock = DockStyle.Fill;
     tabControl1.Location = new Point(0, 0);
     tabControl1.Name = "tabControl1";
     tabControl1.SelectedIndex = 0;
     tabControl1.Size = new Size(280, 333);
     tabControl1.TabIndex = 1;
     //
     // tabPage2
     //
     tabPage2.Controls.Add(DatabaseTreeView);
     tabPage2.Location = new Point(4, 22);
     tabPage2.Name = "tabPage2";
     tabPage2.Padding = new Padding(3);
     tabPage2.Size = new Size(272, 307);
     tabPage2.TabIndex = 0;
     tabPage2.Text = "Database";
     tabPage2.UseVisualStyleBackColor = true;
     //
     // tabPage3
     //
     tabPage3.Location = new Point(4, 22);
     tabPage3.Name = "tabPage3";
     tabPage3.Padding = new Padding(3);
     tabPage3.Size = new Size(272, 307);
     tabPage3.TabIndex = 1;
     tabPage3.Text = "Templates";
     tabPage3.UseVisualStyleBackColor = true;
     //
     // DatabaseTreeView
     //
     DatabaseTreeView.Dock = DockStyle.Fill;
     DatabaseTreeView.Location = new Point(3, 3);
     DatabaseTreeView.Name = "DatabaseTreeView";
     DatabaseTreeView.Size = new Size(266, 301);
     DatabaseTreeView.TabIndex = 1;
     DatabaseTreeView.MouseDown += new MouseEventHandler(DatabaseTreeView_MouseDown);
     DatabaseTreeView.MouseDoubleClick += DatabaseTreeView_MouseDoubleClick;
     DatabaseTreeView.AfterExpand += DatabaseTreeView_AfterExpand;
     //
     // frmExplorer
     //
     AutoScaleBaseSize = new Size(5, 13);
     ClientSize = new Size(840, 383);
     Controls.Add(splitContainer1);
     Controls.Add(statusStrip1);
     Controls.Add(toolBar1);
     Icon = ((Icon)(resources.GetObject("$this.Icon")));
     Menu = mainMenu1;
     Name = "frmExplorer";
     Text = "TSProjects: Data Monkey";
     ((ISupportInitialize)(sqlStatementTextBox)).EndInit();
     statusStrip1.ResumeLayout(false);
     statusStrip1.PerformLayout();
     splitContainer1.Panel1.ResumeLayout(false);
     splitContainer1.Panel2.ResumeLayout(false);
     ((ISupportInitialize)(splitContainer1)).EndInit();
     splitContainer1.ResumeLayout(false);
     splitContainer2.Panel1.ResumeLayout(false);
     splitContainer2.Panel2.ResumeLayout(false);
     ((ISupportInitialize)(splitContainer2)).EndInit();
     splitContainer2.ResumeLayout(false);
     SQLAreaTabControl.ResumeLayout(false);
     tabPage1.ResumeLayout(false);
     ((ISupportInitialize)(silverMonkeyFCTB1)).EndInit();
     tabControl1.ResumeLayout(false);
     tabPage2.ResumeLayout(false);
     ResumeLayout(false);
     PerformLayout();
 }
开发者ID:Gerolkae,项目名称:Silver-Monkey,代码行数:101,代码来源:frmExplorer.cs

示例5: InitializeComponent


//.........这里部分代码省略.........
     btn8.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Bold);
     btn8.Location = new System.Drawing.Point(93, 173);
     btn8.Name = "btn8";
     btn8.Size = new System.Drawing.Size(55, 55);
     btn8.TabIndex = 24;
     btn8.Text = "8";
     btn8.UseVisualStyleBackColor = true;
     //
     // btn7
     //
     btn7.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Bold);
     btn7.Location = new System.Drawing.Point(32, 173);
     btn7.Name = "btn7";
     btn7.Size = new System.Drawing.Size(55, 55);
     btn7.TabIndex = 23;
     btn7.Text = "7";
     btn7.UseVisualStyleBackColor = true;
     //
     // btn0
     //
     btn0.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Bold);
     btn0.Location = new System.Drawing.Point(93, 234);
     btn0.Name = "btn0";
     btn0.Size = new System.Drawing.Size(55, 55);
     btn0.TabIndex = 26;
     btn0.Text = "0";
     btn0.UseVisualStyleBackColor = true;
     //
     // btnRESTA
     //
     btnRESTA.Font = new System.Drawing.Font("Microsoft Sans Serif", 22F, System.Drawing.FontStyle.Bold);
     btnRESTA.Location = new System.Drawing.Point(260, 97);
     btnRESTA.Name = "btnRESTA";
     btnRESTA.Size = new System.Drawing.Size(40, 40);
     btnRESTA.TabIndex = 27;
     btnRESTA.Text = "-";
     btnRESTA.UseVisualStyleBackColor = true;
     //
     // btnDIV
     //
     btnDIV.Font = new System.Drawing.Font("Microsoft Sans Serif", 22F, System.Drawing.FontStyle.Bold);
     btnDIV.Location = new System.Drawing.Point(260, 143);
     btnDIV.Name = "btnDIV";
     btnDIV.Size = new System.Drawing.Size(40, 40);
     btnDIV.TabIndex = 28;
     btnDIV.Text = "÷";
     btnDIV.UseVisualStyleBackColor = true;
     //
     // btnMULT
     //
     btnMULT.Font = new System.Drawing.Font("Microsoft Sans Serif", 22F, System.Drawing.FontStyle.Bold);
     btnMULT.Location = new System.Drawing.Point(260, 188);
     btnMULT.Name = "btnMULT";
     btnMULT.Size = new System.Drawing.Size(40, 40);
     btnMULT.TabIndex = 29;
     btnMULT.Text = "×";
     btnMULT.UseVisualStyleBackColor = true;
     //
     // btnCE
     //
     btnCE.Font = new System.Drawing.Font("Microsoft Sans Serif", 22F, System.Drawing.FontStyle.Bold);
     btnCE.Location = new System.Drawing.Point(250, 250);
     btnCE.Name = "btnCE";
     btnCE.Size = new System.Drawing.Size(70, 40);
     btnCE.TabIndex = 30;
     btnCE.Text = "CE";
     btnCE.UseVisualStyleBackColor = true;
     btnCE.Click += new System.EventHandler(btnCE_Click);
     //
     // CALC
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     ClientSize = new System.Drawing.Size(360, 350);
     this.FormBorderStyle = FormBorderStyle.FixedSingle;
     this.MaximizeBox = false;
     Controls.Add(btnCE);
     Controls.Add(btnMULT);
     Controls.Add(btnDIV);
     Controls.Add(btnRESTA);
     Controls.Add(btn0);
     Controls.Add(btn9);
     Controls.Add(btn8);
     Controls.Add(btn7);
     Controls.Add(btn6);
     Controls.Add(btn5);
     Controls.Add(btn4);
     Controls.Add(btn3);
     Controls.Add(btn2);
     Controls.Add(btnSUMA);
     Controls.Add(btn1);
     Controls.Add(txtINPUT);
     Controls.Add(btnEnviar);
     Controls.Add(statusStrip1);
     Name = "Calculadora GUI";
     statusStrip1.ResumeLayout(false);
     statusStrip1.PerformLayout();
     ResumeLayout(false);
     PerformLayout();
 }
开发者ID:GeMaths,项目名称:calculadoraADSOA,代码行数:101,代码来源:GUI.cs

示例6: Main


//.........这里部分代码省略.........
                textBoxOutput.ReadOnly = true;
                textBoxOutput.Size = new Size(363, 150);
                textBoxOutput.TabIndex = 1;
                //
                // statusStrip1
                //
                statusStrip.Items.AddRange(new ToolStripItem[] {statusLabel});
                statusStrip.Location = new Point(0, 238);
                statusStrip.Name = "statusStrip1";
                statusStrip.Size = new Size(363, 22);
                statusStrip.TabIndex = 2;
                statusStrip.Text = "statusStrip1";
                //
                // toolStripStatusLabel1
                //
                statusLabel.Name = "toolStripStatusLabel1";
                statusLabel.Size = new Size(29, 17);
                statusLabel.Spring = true;
                statusLabel.TextAlign = ContentAlignment.MiddleLeft;
                //
                // Form1
                //
                form.AutoScaleDimensions = new SizeF(6F, 12F);
                form.AutoScaleMode = AutoScaleMode.Font;
                form.ClientSize = new Size(363, 260);
                form.Controls.Add(statusStrip);
                form.Controls.Add(panelFill);
                form.Controls.Add(flowLayoutPanelTop);
                form.Name = "Form1";
                form.Text = "二进制打印";
                form.StartPosition = FormStartPosition.CenterScreen;
                form.ImeMode = ImeMode.On;
                flowLayoutPanelTop.ResumeLayout(false);
                flowLayoutPanelTop.PerformLayout();
                panelFill.ResumeLayout(false);
                panelFill.PerformLayout();
                statusStrip.ResumeLayout(false);
                statusStrip.PerformLayout();
                form.ResumeLayout(false);
                form.PerformLayout();
            }

            radioButtonText.Click += (o, e) =>
            {
                textBoxInput.Text = "";
                textBoxOutput.Text = "";

                var commonUse = new List<string>();
                commonUse.Add(Encoding.Unicode.WebName);
                commonUse.Add(Encoding.UTF8.WebName);
                commonUse.Add(Encoding.Default.WebName);
                commonUse.Add(Encoding.UTF7.WebName);
                commonUse.Add(Encoding.UTF32.WebName);

                var fullList = Encoding.GetEncodings().Select(i=>i.GetEncoding().WebName);

                comboBox.DataSource = commonUse.Concat(fullList.Except(commonUse)).ToArray();
            };

            radioButtonNumber.Click += (o, e) =>
            {
                textBoxInput.Text = "";
                textBoxOutput.Text = "";

                comboBox.DataSource = new string[] { "unsigned oct", "signed oct", "hex", };
            };
开发者ID:GHScan,项目名称:DailyProjects,代码行数:67,代码来源:Program.cs

示例7: InitializeComponent


//.........这里部分代码省略.........
			toolStripSeparator1.Name = "toolStripSeparator1";
			resources.ApplyResources(toolStripSeparator1, "toolStripSeparator1");
			//
			// toolStripSeparator2
			//
			toolStripSeparator2.Name = "toolStripSeparator2";
			resources.ApplyResources(toolStripSeparator2, "toolStripSeparator2");
			//
			// statusStrip
			//
			statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.lblStatus});
			resources.ApplyResources(statusStrip, "statusStrip");
			statusStrip.Name = "statusStrip";
			//
			// lblStatus
			//
			this.lblStatus.ForeColor = System.Drawing.Color.Red;
			this.lblStatus.Margin = new System.Windows.Forms.Padding(10, 3, 0, 2);
			this.lblStatus.Name = "lblStatus";
			resources.ApplyResources(this.lblStatus, "lblStatus");
			this.lblStatus.Spring = true;
			//
			// openFileDialog
			//
			resources.ApplyResources(this.openFileDialog, "openFileDialog");
			//
			// menuStrip
			//
			this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.changeFontToolStripMenuItem,
            this.exportChangesToolStripMenuItem});
			resources.ApplyResources(this.menuStrip, "menuStrip");
			this.menuStrip.Name = "menuStrip";
			//
			// changeFontToolStripMenuItem
			//
			this.changeFontToolStripMenuItem.Name = "changeFontToolStripMenuItem";
			resources.ApplyResources(this.changeFontToolStripMenuItem, "changeFontToolStripMenuItem");
			this.changeFontToolStripMenuItem.Text = global::Updater.Common.Properties.Settings.Default.ChangeFont;
			this.changeFontToolStripMenuItem.Click += new System.EventHandler(this.changeFontToolStripMenuItem_Click);
			//
			// exportChangesToolStripMenuItem
			//
			resources.ApplyResources(this.exportChangesToolStripMenuItem, "exportChangesToolStripMenuItem");
			this.exportChangesToolStripMenuItem.Name = "exportChangesToolStripMenuItem";
			this.exportChangesToolStripMenuItem.Text = global::Updater.Common.Properties.Settings.Default.ExportChanges;
			this.exportChangesToolStripMenuItem.Click += new System.EventHandler(this.exportChangesToolStripMenuItem_Click);
			//
			// saveFileDialog
			//
			this.saveFileDialog.DefaultExt = "xml";
			resources.ApplyResources(this.saveFileDialog, "saveFileDialog");
			//
			// btnDoWork
			//
			resources.ApplyResources(this.btnDoWork, "btnDoWork");
			this.btnDoWork.Name = "btnDoWork";
			this.btnDoWork.Text = global::Updater.Common.Properties.Settings.Default.StepThreeExplanation;
			this.btnDoWork.UseVisualStyleBackColor = true;
			this.btnDoWork.Click += new System.EventHandler(this.btnDoWork_Click);
			//
			// editor
			//
			resources.ApplyResources(this.editor, "editor");
			this.editor.Name = "editor";
			this.editor.NewFilePath = null;
			this.editor.OldFilePath = null;
			this.editor.UpdatedFilePath = null;
			this.editor.UpdatePaneFont = new System.Drawing.Font("Verdana", 8.25F);
			//
			// MainForm
			//
			resources.ApplyResources(this, "$this");
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.btnDoWork);
			this.Controls.Add(this.editor);
			this.Controls.Add(statusStrip);
			this.Controls.Add(this.menuStrip);
			this.Controls.Add(this.tableTopAll);
			this.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::Updater.Common.Properties.Settings.Default, "FormTitle", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
			this.DoubleBuffered = true;
			this.MainMenuStrip = this.menuStrip;
			this.Name = "MainForm";
			this.Text = global::Updater.Common.Properties.Settings.Default.FormTitle;
			this.ResizeBegin += new System.EventHandler(this.form_ResizeBegin);
			this.tableTopAll.ResumeLayout(false);
			this.tableTopAll.PerformLayout();
			tableTopRight.ResumeLayout(false);
			tableTopRight.PerformLayout();
			tableTopLeft.ResumeLayout(false);
			tableTopLeft.PerformLayout();
			statusStrip.ResumeLayout(false);
			statusStrip.PerformLayout();
			this.menuStrip.ResumeLayout(false);
			this.menuStrip.PerformLayout();
			this.ResumeLayout(false);
			this.PerformLayout();

		}
开发者ID:qing3962,项目名称:peerproject,代码行数:101,代码来源:MainForm.Designer.cs

示例8: InitializeComponent

 private void InitializeComponent()
 {
     var manager = new ComponentResourceManager(typeof (PreviewScreenshot));
     menuStrip1 = new MenuStrip();
     uploadToolStripMenuItem = new ToolStripMenuItem();
     discardToolStripMenuItem1 = new ToolStripMenuItem();
     pictureBox1 = new PictureBox();
     statusStrip1 = new StatusStrip();
     toolStripProgressBar1 = new ToolStripProgressBar();
     menuStrip1.SuspendLayout();
     ((ISupportInitialize) pictureBox1).BeginInit();
     statusStrip1.SuspendLayout();
     base.SuspendLayout();
     menuStrip1.Items.AddRange(new ToolStripItem[] {uploadToolStripMenuItem, discardToolStripMenuItem1});
     menuStrip1.Location = new Point(0, 0);
     menuStrip1.Name = "menuStrip1";
     menuStrip1.Size = new Size(0x173, 0x18);
     menuStrip1.TabIndex = 1;
     menuStrip1.Text = "menuStrip1";
     uploadToolStripMenuItem.Name = "uploadToolStripMenuItem";
     uploadToolStripMenuItem.Size = new Size(0x39, 20);
     uploadToolStripMenuItem.Text = "Upload";
     uploadToolStripMenuItem.Click += uploadToolStripMenuItem_Click;
     discardToolStripMenuItem1.Name = "discardToolStripMenuItem1";
     discardToolStripMenuItem1.Size = new Size(0x3a, 20);
     discardToolStripMenuItem1.Text = "Discard";
     discardToolStripMenuItem1.Click += discardToolStripMenuItem1_Click;
     pictureBox1.Dock = DockStyle.Fill;
     pictureBox1.Location = new Point(0, 0x18);
     pictureBox1.Name = "pictureBox1";
     pictureBox1.Size = new Size(0x173, 0xeb);
     pictureBox1.SizeMode = PictureBoxSizeMode.CenterImage;
     pictureBox1.TabIndex = 0;
     pictureBox1.TabStop = false;
     statusStrip1.Items.AddRange(new ToolStripItem[] {toolStripProgressBar1});
     statusStrip1.Location = new Point(0, 0xed);
     statusStrip1.Name = "statusStrip1";
     statusStrip1.Size = new Size(0x173, 0x16);
     statusStrip1.TabIndex = 2;
     statusStrip1.Text = "statusStrip1";
     toolStripProgressBar1.Name = "toolStripProgressBar1";
     toolStripProgressBar1.Size = new Size(100, 0x10);
     toolStripProgressBar1.Style = ProgressBarStyle.Continuous;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.ClientSize = new Size(0x173, 0x103);
     base.Controls.Add(statusStrip1);
     base.Controls.Add(pictureBox1);
     base.Controls.Add(menuStrip1);
     base.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     base.Icon = (Icon) manager.GetObject("$this.Icon");
     base.MainMenuStrip = menuStrip1;
     base.Name = "PreviewScreenshot";
     Text = "Screenshot Preview";
     menuStrip1.ResumeLayout(false);
     menuStrip1.PerformLayout();
     ((ISupportInitialize) pictureBox1).EndInit();
     statusStrip1.ResumeLayout(false);
     statusStrip1.PerformLayout();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
开发者ID:LoveLeAnon,项目名称:Summit-Client,代码行数:62,代码来源:PreviewScreenshot.cs

示例9: SuspendLayout


//.........这里部分代码省略.........
     Abonos_ProveedorToolStripMenuItem.Name = "Abonos_ProveedorToolStripMenuItem";
     Abonos_ProveedorToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Dinero;
     Abonos_ProveedorToolStripMenuItem.Size = new System.Drawing.Size(156, 22);
     Abonos_ProveedorToolStripMenuItem.Text = "Abonos Proveedores";
     Abonos_ProveedorToolStripMenuItem.Click += new System.EventHandler(Abonos_ProveedorToolStripMenuItem_Click);
     //
     // PedidosToolStripMenuItem
     //
     PedidosToolStripMenuItem.Name = "PedidosToolStripMenuItem";
     PedidosToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Pedidos;
     PedidosToolStripMenuItem.Size = new System.Drawing.Size(156, 22);
     PedidosToolStripMenuItem.Text = "Pedido de materia prima";
     PedidosToolStripMenuItem.Click += new System.EventHandler(PedidosToolStripMenuItem_Click);
     //
     // tipoDePiezasToolStripMenuItem
     //
     tipoDePiezasToolStripMenuItem.Name = "tipoDePiezasToolStripMenuItem";
     tipoDePiezasToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Materia_prima;
     tipoDePiezasToolStripMenuItem.Size = new System.Drawing.Size(171, 22);
     tipoDePiezasToolStripMenuItem.Text = "Tipo de piezas";
     tipoDePiezasToolStripMenuItem.Click += new System.EventHandler(tipoDePiezasToolStripMenuItem_Click);
     //
     // TipodeMateriaPrimaToolStripMenuItem
     //
     TipodeMateriaPrimaToolStripMenuItem.Name = "TipodeMateriaPrimaToolStripMenuItem";
     TipodeMateriaPrimaToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Materia_prima;
     TipodeMateriaPrimaToolStripMenuItem.Size = new System.Drawing.Size(171, 22);
     TipodeMateriaPrimaToolStripMenuItem.Text = "Tipo de materias primas";
     TipodeMateriaPrimaToolStripMenuItem.Click += new System.EventHandler(TipodeMateriaPrimaToolStripMenuItem_Click);
     //
     // productosToolStripMenuItem
     //
     productosToolStripMenuItem.Name = "productosToolStripMenuItem";
     productosToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Producto;
     productosToolStripMenuItem.Size = new System.Drawing.Size(171, 22);
     productosToolStripMenuItem.Text = "Productos";
     productosToolStripMenuItem.Click += new System.EventHandler(productosToolStripMenuItem_Click);
     //
     // almacénToolStripMenuItem1
     //
     almacénToolStripMenuItem1.Name = "almacénToolStripMenuItem1";
     almacénToolStripMenuItem1.Image = global::Sistema_Shajobe.Properties.Resources.Almacen;
     almacénToolStripMenuItem1.Size = new System.Drawing.Size(171, 22);
     almacénToolStripMenuItem1.Text = "Almacén";
     almacénToolStripMenuItem1.Click += new System.EventHandler(almacénToolStripMenuItem1_Click);
     //
     // Tipo_UsuarioToolStripMenuItem1
     //
     Tipo_UsuarioToolStripMenuItem1.Name = "Tipo_UsuarioToolStripMenuItem1";
     Tipo_UsuarioToolStripMenuItem1.Image = global::Sistema_Shajobe.Properties.Resources.Usuario;
     Tipo_UsuarioToolStripMenuItem1.Size = new System.Drawing.Size(171, 22);
     Tipo_UsuarioToolStripMenuItem1.Text = "Tipo de Usuarios";
     Tipo_UsuarioToolStripMenuItem1.Click += new System.EventHandler(Tipo_UsuarioToolStripMenuItem_Click);
     //
     // materiaPrimaToolStripMenuItem
     //
     materiaPrimaToolStripMenuItem.Name = "materiaPrimaToolStripMenuItem";
     materiaPrimaToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Materia_prima;
     materiaPrimaToolStripMenuItem.Size = new System.Drawing.Size(171, 22);
     materiaPrimaToolStripMenuItem.Text = "Materia prima";
     materiaPrimaToolStripMenuItem.Click += new System.EventHandler(materiaPrimaToolStripMenuItem_Click);
     //
     // tool_Separador_Tipos
     //
     tool_Separador_Tipos.Name = "tool_Separador_Tipos";
     tool_Separador_Tipos.Size = new System.Drawing.Size(168, 6);
     //
     // tool_Separator
     //
     tool_Separator.Name = "tool_Separator";
     tool_Separator.Size = new System.Drawing.Size(168, 6);
     //
     // Menu_principal
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(228)))), ((int)(((byte)(196)))));
     ClientSize = new System.Drawing.Size(848, 650);
     Controls.Add(Barra_menu);
     Controls.Add(statusStrip1);
     Controls.Add(Capturar_Imagenes);
     Controls.Add(Codigo_Barra);
     Controls.Add(Pedidos_Clientes);
     Controls.Add(Pedidos_Proveedores);
     Controls.Add(pic_Logo);
     ControlBox = false;
     MaximumSize = new System.Drawing.Size(886, 650);
     MinimumSize = new System.Drawing.Size(886, 650);
     MaximizeBox = false;
     FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     Icon = global::Sistema_Shajobe.Properties.Resources.Shajobe_ICO;
     Name = "Menu_principal";
     Text = "Sistema Shajobe";
     statusStrip1.ResumeLayout(false);
     statusStrip1.PerformLayout();
     Barra_menu.ResumeLayout(false);
     Barra_menu.PerformLayout();
     ResumeLayout(false);
     PerformLayout();
 }
开发者ID:josericardo-ac,项目名称:Titulacion,代码行数:101,代码来源:Menu+principal.cs


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