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


C# StatusStrip.SuspendLayout方法代码示例

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


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

示例1: InitializeComponent

  /// <summary>
  /// Required method for Designer support - do not modify
  /// the contents of this method with the code editor.
  /// </summary>
  private void InitializeComponent()
  {
   int i;
   String fname = "CreativeModePlus.res.Minecraft-Icon.ico";
   Stream file = Asm.exe.GetManifestResourceStream( fname );
   Bitmap icon = new Bitmap( file );
   menuStrip1 = new MenuStrip();
   fileToolStripMenuItem = new ToolStripMenuItem();
   openMenu = new ToolStripMenuItem();
   exportMenu = new ToolStripMenuItem();
   toolStripSeparator1 = new ToolStripSeparator();
   exitMenu = new ToolStripMenuItem();
   editToolStripMenuItem = new ToolStripMenuItem();
   undoMenu = new ToolStripMenuItem();
   redoMenu = new ToolStripMenuItem();
   toolStripSeparator2 = new ToolStripSeparator();
   deselMenu = new ToolStripMenuItem();
   toolStripSeparator3 = new ToolStripSeparator();
   copyMenu = new ToolStripMenuItem();
   cutMenu = new ToolStripMenuItem();
   pasteMenu = new ToolStripMenuItem();
   viewToolStripMenuItem = new ToolStripMenuItem();
   toolsMenu = new ToolStripMenuItem();
   mapToolStripMenuItem = new ToolStripMenuItem();
   regionMenu = new ToolStripMenuItem();
   helpToolStripMenuItem = new ToolStripMenuItem();
   helpMenu = new ToolStripMenuItem();
   aboutMenu = new ToolStripMenuItem();
   mnuScale = new ToolStripTextBox();
   height = new ComboBox();
   statusStrip1 = new StatusStrip();
   toolStripStatusLabel1 = new ToolStripStatusLabel();
   mnuLoad = new ToolStripProgressBar();
   toolStripStatusLabel2 = new ToolStripStatusLabel();
   mnuStatus = new ToolStripStatusLabel();
   toolStripStatusLabel3 = new ToolStripStatusLabel();
   mnuBlock = new ToolStripStatusLabel();
   toolStripStatusLabel4 = new ToolStripStatusLabel();
   mnuCoord = new ToolStripStatusLabel();
   pnlImage = new Panel();
   mapImage = new PictureBox();
   cmbBlocks = new CreativeModePlus.ComboBoxWithIcons();
   cmbPaint = new CreativeModePlus.ComboBoxWithIcons();
   menuStrip1.SuspendLayout();
   statusStrip1.SuspendLayout();
   pnlImage.SuspendLayout();
   ((System.ComponentModel.ISupportInitialize)(mapImage)).BeginInit();
   SuspendLayout();
   // 
   // menuStrip1
   // 
   menuStrip1.BackColor = Color.LightGray;
   menuStrip1.Items.AddRange(new ToolStripItem[] {
            fileToolStripMenuItem,
            editToolStripMenuItem,
            viewToolStripMenuItem,
            mapToolStripMenuItem,
            helpToolStripMenuItem,
            mnuScale});
   menuStrip1.Location = new Point(0, 0);
   menuStrip1.Name = "menuStrip1";
   menuStrip1.Size = new Size(528, 27);
   menuStrip1.TabIndex = 0;
   menuStrip1.Text = "menuStrip1";
   // 
   // fileToolStripMenuItem
   // 
   fileToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] {
            openMenu,
            exportMenu,
            toolStripSeparator1,
            exitMenu});
   fileToolStripMenuItem.Name = "fileToolStripMenuItem";
   fileToolStripMenuItem.Size = new Size(37, 23);
   fileToolStripMenuItem.Text = "&File";
   // 
   // openMenu
   // 
   openMenu.Name = "openMenu";
   openMenu.ShortcutKeys = ((Keys)((Keys.Control | Keys.O)));
   openMenu.Size = new Size(182, 22);
   openMenu.Text = "&Open World";
   openMenu.Click += new EventHandler(openMenu_Click);
   // 
   // exportMenu
   // 
   exportMenu.Name = "exportMenu";
   exportMenu.ShortcutKeys = ((Keys)((Keys.Control | Keys.S)));
   exportMenu.Size = new Size(182, 22);
   exportMenu.Text = "&Save";
   exportMenu.Click += new EventHandler( exportMenu_Click );
   // 
   // toolStripSeparator1
   // 
   toolStripSeparator1.Name = "toolStripSeparator1";
   toolStripSeparator1.Size = new Size(179, 6);
//.........这里部分代码省略.........
开发者ID:InTheSPOT,项目名称:creative-mode-plus,代码行数:101,代码来源:main.Designer.cs

示例2: InitializeGUI

        /// <summary>
        /// 
        /// </summary>
        protected void InitializeGUI()
        {
            EditingManager_cl.Instance.EditingEnabled = true;

            mShowEditorGUI = true;

            // Get the game window as a WinForm Form class
            Form windowForm = Control.FromHandle(FNA.Game_cl.BaseInstance.WindowHandle) as Form;

            windowForm.MouseUp += new MouseEventHandler(windowForm_MouseUp);
            windowForm.MouseLeave += new EventHandler(windowForm_MouseLeave);
            windowForm.MouseEnter += new EventHandler(windowForm_MouseEnter);

            mEditorMenuStrip = new MenuStrip();
            mEditorMenuStrip.Dock = DockStyle.Top;
            mEditorMenuStrip.SuspendLayout();
            mEditorStatusStrip = new StatusStrip();
            mEditorStatusStrip.SuspendLayout();
            mEditorStatusLabel = new ToolStripStatusLabel("Welcome to the World Editor!");
            mMenuFile = new ToolStripMenuItem();
            mMenuPanels = new ToolStripMenuItem();
            mMenuView = new ToolStripMenuItem();
            mMenuItemNewScene = new ToolStripMenuItem();
            mMenuItemOpenScene = new ToolStripMenuItem();
            mMenuItemSaveScene = new ToolStripMenuItem();
            mMenuItemObjectPanel = new ToolStripMenuItem();
            mMenuItemPrefabPanel = new ToolStripMenuItem();
            mMenuItemDepthSnapping = new ToolStripMenuItem();

            //mEditorMenuStrip.Dock = System.Windows.Forms.DockStyle.Top;
            mEditorMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                mMenuFile,
                mMenuPanels,
                mMenuView});
            mEditorMenuStrip.Location = new System.Drawing.Point(0, 0);
            mEditorMenuStrip.Name = "mEditorMenuStrip";
            mEditorMenuStrip.Padding = new System.Windows.Forms.Padding(4, 2, 0, 2);
            mEditorMenuStrip.Size = new System.Drawing.Size(windowForm.Width, 32);
            mEditorMenuStrip.TabIndex = 1;
            mEditorMenuStrip.Text = "mEditorMenuStrip";

            mEditorStatusStrip.Dock = DockStyle.Bottom;
            mEditorStatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { mEditorStatusLabel });
            mEditorStatusStrip.TabStop = false;
            mEditorStatusLabel.Size = new Size(mEditorStatusStrip.Width, mEditorStatusStrip.Height);

            mMenuFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                mMenuItemNewScene, mMenuItemOpenScene, mMenuItemSaveScene});
            mMenuFile.Name = "mMenuFile";
            mMenuFile.Size = new System.Drawing.Size(40, 20);
            mMenuFile.Text = "File";
            mMenuPanels.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                mMenuItemObjectPanel, mMenuItemPrefabPanel});
            mMenuPanels.Name = "mMenuPanels";
            mMenuPanels.Size = new System.Drawing.Size(40, 20);
            mMenuPanels.Text = "Panels";

            mMenuView.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                mMenuItemDepthSnapping});
            mMenuView.Name = "mMenuView";
            mMenuView.Size = new System.Drawing.Size(40, 20);
            mMenuView.Text = "View";

            mMenuItemNewScene.Name = "mMenuItemNewScene";
            mMenuItemNewScene.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
            mMenuItemNewScene.Size = new System.Drawing.Size(200, 22);
            mMenuItemNewScene.Text = "New Scene";
            mMenuItemNewScene.Click += new System.EventHandler(mMenuItemNewScene_Click);
            mMenuItemOpenScene.Name = "mMenuItemOpenScene";
            mMenuItemOpenScene.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
            mMenuItemOpenScene.Size = new System.Drawing.Size(200, 22);
            mMenuItemOpenScene.Text = "Open Scene";
            mMenuItemOpenScene.Click += new System.EventHandler(mMenuItemOpenScene_Click);
            mMenuItemSaveScene.Name = "mMenuItemSaveScene";
            mMenuItemSaveScene.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
            mMenuItemSaveScene.Size = new System.Drawing.Size(200, 22);
            mMenuItemSaveScene.Text = "Save Scene";
            mMenuItemSaveScene.Click += new System.EventHandler(mMenuItemSaveScene_Click);
            mMenuItemObjectPanel.Size = new System.Drawing.Size(200, 22);
            mMenuItemObjectPanel.Text = "Object Panel";
            mMenuItemObjectPanel.Checked = true;
            mMenuItemObjectPanel.CheckOnClick = true;
            mMenuItemObjectPanel.Click += new System.EventHandler(mMenuItemObjectPanel_Click);
            mMenuItemPrefabPanel.Size = new System.Drawing.Size(200, 22);
            mMenuItemPrefabPanel.Text = "Prefab Panel";
            mMenuItemPrefabPanel.Checked = true;
            mMenuItemPrefabPanel.CheckOnClick = true;
            mMenuItemPrefabPanel.Click += new System.EventHandler(mMenuItemPrefabPanel_Click);
            mMenuItemDepthSnapping.Size = new System.Drawing.Size(200, 22);
            mMenuItemDepthSnapping.Text = "Snap to Depth";
            mMenuItemDepthSnapping.Checked = false;
            mMenuItemDepthSnapping.CheckOnClick = true;
            mMenuItemDepthSnapping.Click += new System.EventHandler(mMenuItemSnapping_Click);

            mEditorContextMenu = new ContextMenuStrip(new System.ComponentModel.Container());
            /************************************************************************
             * TODO:
//.........这里部分代码省略.........
开发者ID:IDGASoft,项目名称:Molydeux,代码行数:101,代码来源:WorldEditor.cs

示例3: InitializeComponent

 private void InitializeComponent()
 {
   buttonGetData = new Button();
   textBoxPassword = new TextBox();
   labelPassword = new Label();
   textBoxUserName = new TextBox();
   labelUserName = new Label();
   textBoxIpAddress = new TextBox();
   labelIpAddress = new Label();
   buttonOK = new Button();
   buttonCancel = new Button();
   statusStrip = new StatusStrip();
   toolStripStatusLabel = new ToolStripStatusLabel();
   buttonDetectBoxType = new Button();
   labelTimeout = new Label();
   numericUpDownTimeout = new NumericUpDown();
   labelMilliseconds = new Label();
   statusStrip.SuspendLayout();
   ((ISupportInitialize) (numericUpDownTimeout)).BeginInit();
   SuspendLayout();
   // 
   // buttonGetData
   // 
   buttonGetData.Anchor = (((AnchorStyles.Bottom | AnchorStyles.Left)));
   buttonGetData.Location = new Point(8, 112);
   buttonGetData.Name = "buttonGetData";
   buttonGetData.Size = new Size(104, 24);
   buttonGetData.TabIndex = 6;
   buttonGetData.Text = "Get channel list";
   buttonGetData.UseVisualStyleBackColor = true;
   buttonGetData.Click += buttonGetData_Click;
   // 
   // textBoxPassword
   // 
   textBoxPassword.Anchor = ((((AnchorStyles.Top | AnchorStyles.Left)
                               | AnchorStyles.Right)));
   textBoxPassword.Location = new Point(88, 56);
   textBoxPassword.Name = "textBoxPassword";
   textBoxPassword.Size = new Size(176, 20);
   textBoxPassword.TabIndex = 5;
   // 
   // labelPassword
   // 
   labelPassword.Location = new Point(8, 56);
   labelPassword.Name = "labelPassword";
   labelPassword.Size = new Size(80, 20);
   labelPassword.TabIndex = 4;
   labelPassword.Text = "Password:";
   labelPassword.TextAlign = ContentAlignment.MiddleLeft;
   // 
   // textBoxUserName
   // 
   textBoxUserName.Anchor = ((((AnchorStyles.Top | AnchorStyles.Left)
                               | AnchorStyles.Right)));
   textBoxUserName.Location = new Point(88, 32);
   textBoxUserName.Name = "textBoxUserName";
   textBoxUserName.Size = new Size(176, 20);
   textBoxUserName.TabIndex = 3;
   // 
   // labelUserName
   // 
   labelUserName.Location = new Point(8, 32);
   labelUserName.Name = "labelUserName";
   labelUserName.Size = new Size(80, 20);
   labelUserName.TabIndex = 2;
   labelUserName.Text = "User name:";
   labelUserName.TextAlign = ContentAlignment.MiddleLeft;
   // 
   // textBoxIpAddress
   // 
   textBoxIpAddress.Anchor = ((((AnchorStyles.Top | AnchorStyles.Left)
                                | AnchorStyles.Right)));
   textBoxIpAddress.Location = new Point(88, 8);
   textBoxIpAddress.Name = "textBoxIpAddress";
   textBoxIpAddress.Size = new Size(176, 20);
   textBoxIpAddress.TabIndex = 1;
   // 
   // labelIpAddress
   // 
   labelIpAddress.Location = new Point(8, 8);
   labelIpAddress.Name = "labelIpAddress";
   labelIpAddress.Size = new Size(80, 20);
   labelIpAddress.TabIndex = 0;
   labelIpAddress.Text = "IP address:";
   labelIpAddress.TextAlign = ContentAlignment.MiddleLeft;
   // 
   // buttonOK
   // 
   buttonOK.Anchor = (((AnchorStyles.Bottom | AnchorStyles.Right)));
   buttonOK.Location = new Point(128, 144);
   buttonOK.Name = "buttonOK";
   buttonOK.Size = new Size(64, 24);
   buttonOK.TabIndex = 7;
   buttonOK.Text = "OK";
   buttonOK.UseVisualStyleBackColor = true;
   buttonOK.Click += buttonOK_Click;
   // 
   // buttonCancel
   // 
   buttonCancel.Anchor = (((AnchorStyles.Bottom | AnchorStyles.Right)));
//.........这里部分代码省略.........
开发者ID:astalavister,项目名称:IR-Server-Suite,代码行数:101,代码来源:SetupForm.cs

示例4: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     components = new Container();
     ComponentResourceManager resources = new ComponentResourceManager(typeof(frmExplorer));
     mainMenu1 = new MainMenu(components);
     menuItem1 = new MenuItem();
     OpenDBmenu = new MenuItem();
     CreateDBMenu = new MenuItem();
     CheckIntegrity = new MenuItem();
     menuItem3 = new MenuItem();
     ExitAppMenu = new MenuItem();
     menuItem2 = new MenuItem();
     AddAreaMenu = new MenuItem();
     objExecuteSQL = new MenuItem();
     objOpenTableSQL = new MenuItem();
     objRenameTableSQL = new MenuItem();
     objAddColumnSQL = new MenuItem();
     objRemoveColumnSQL = new MenuItem();
     objDeleteRowSQL = new MenuItem();
     objCreateTableSQL = new MenuItem();
     objDeleteTableSQL = new MenuItem();
     TreeViewContextMenu = new ContextMenu();
     TreeViewTablesMenu = new ContextMenu();
     toolBar1 = new ToolBar();
     OpenDatabase = new ToolBarButton();
     IntegrityCheck = new ToolBarButton();
     Separator = new ToolBarButton();
     ExecuteSQL = new ToolBarButton();
     ToolBarImages = new ImageList(components);
     sqlStatementTextBox = new FastColoredTextBox();
     statusStrip1 = new StatusStrip();
     StatusStripLog = new ToolStripStatusLabel();
     splitContainer1 = new SplitContainer();
     splitContainer2 = new SplitContainer();
     SQLAreaTabControl = new TabControlEx();
     tabPage1 = new TabPage();
     silverMonkeyFCTB1 = new SilverMonkeyFCTB();
     SqlResultsListView = new ListView_NoFlicker();
     tabControl1 = new TabControl();
     tabPage2 = new TabPage();
     tabPage3 = new TabPage();
     DatabaseTreeView = new TreeView();
     ((ISupportInitialize)(sqlStatementTextBox)).BeginInit();
     statusStrip1.SuspendLayout();
     ((ISupportInitialize)(splitContainer1)).BeginInit();
     splitContainer1.Panel1.SuspendLayout();
     splitContainer1.Panel2.SuspendLayout();
     splitContainer1.SuspendLayout();
     ((ISupportInitialize)(splitContainer2)).BeginInit();
     splitContainer2.Panel1.SuspendLayout();
     splitContainer2.Panel2.SuspendLayout();
     splitContainer2.SuspendLayout();
     SQLAreaTabControl.SuspendLayout();
     tabPage1.SuspendLayout();
     ((ISupportInitialize)(silverMonkeyFCTB1)).BeginInit();
     tabControl1.SuspendLayout();
     tabPage2.SuspendLayout();
     SuspendLayout();
     //
     // mainMenu1
     //
     mainMenu1.MenuItems.AddRange(new MenuItem[] {
     menuItem1,
     menuItem2});
     //
     // menuItem1
     //
     menuItem1.Index = 0;
     menuItem1.MenuItems.AddRange(new MenuItem[] {
     OpenDBmenu,
     CreateDBMenu,
     CheckIntegrity,
     menuItem3,
     ExitAppMenu});
     menuItem1.Text = "File";
     //
     // OpenDBmenu
     //
     OpenDBmenu.Index = 0;
     OpenDBmenu.Text = "Open Database";
     OpenDBmenu.Click += new EventHandler(OpenDBmenu_Click);
     //
     // CreateDBMenu
     //
     CreateDBMenu.Index = 1;
     CreateDBMenu.Text = "Create Database";
     CreateDBMenu.Click += new EventHandler(CreateDBMenu_Click);
     //
     // CheckIntegrity
     //
     CheckIntegrity.Index = 2;
     CheckIntegrity.Text = "Check DB Integrity";
     CheckIntegrity.Click += new EventHandler(CheckIntegrity_Click);
     //
     // menuItem3
     //
//.........这里部分代码省略.........
开发者ID:Gerolkae,项目名称:Silver-Monkey,代码行数:101,代码来源:frmExplorer.cs

示例5: InitializeComponent

 private void InitializeComponent()
 {
     btnEnviar = new System.Windows.Forms.Button();
     txtINPUT = new System.Windows.Forms.TextBox();
     btn1 = new System.Windows.Forms.Button();
     btnSUMA = new System.Windows.Forms.Button();
     btn2 = new System.Windows.Forms.Button();
     btn3 = new System.Windows.Forms.Button();
     btn6 = new System.Windows.Forms.Button();
     btn5 = new System.Windows.Forms.Button();
     btn4 = new System.Windows.Forms.Button();
     btn9 = new System.Windows.Forms.Button();
     btn8 = new System.Windows.Forms.Button();
     btn7 = new System.Windows.Forms.Button();
     btn0 = new System.Windows.Forms.Button();
     btnRESTA = new System.Windows.Forms.Button();
     btnDIV = new System.Windows.Forms.Button();
     btnMULT = new System.Windows.Forms.Button();
     btnCE = new System.Windows.Forms.Button();
     statusStrip1 = new System.Windows.Forms.StatusStrip();
     lblSTATUS = new System.Windows.Forms.ToolStripStatusLabel();
     statusStrip1.SuspendLayout();
     SuspendLayout();
     //
     // btnEnviar
     //
     btnEnviar.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F);
     btnEnviar.Location = new System.Drawing.Point(130 + txtINPUT.Width, 13);
     btnEnviar.Name = "btnEnviar";
     btnEnviar.Size = new System.Drawing.Size(121, 32);
     btnEnviar.TabIndex = 0;
     btnEnviar.Text = "ENTER";
     btnEnviar.UseVisualStyleBackColor = true;
     //
     // txtINPUT
     //
     txtINPUT.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F);
     txtINPUT.Location = new System.Drawing.Point(32, 13);
     txtINPUT.Name = "txtINPUT";
     txtINPUT.Size = new System.Drawing.Size(95, 32);
     txtINPUT.TabIndex = 1;
     txtINPUT.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     txtINPUT.Width += txtINPUT.Width;
     //
     // btn1
     //
     btn1.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Bold);
     btn1.Location = new System.Drawing.Point(32, 51);
     btn1.Name = "btn1";
     btn1.Size = new System.Drawing.Size(55, 55);
     btn1.TabIndex = 2;
     btn1.Text = "1";
     btn1.UseVisualStyleBackColor = true;
     //
     // statusStrip1
     //
     statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     lblSTATUS,});
     statusStrip1.Location = new System.Drawing.Point(0, 344);
     statusStrip1.Name = "statusStrip1";
     statusStrip1.Size = new System.Drawing.Size(557, 22);
     statusStrip1.TabIndex = 14;
     statusStrip1.Text = "";
     //
     // lblSTATUS
     //
     lblSTATUS.Name = "lblSTATUS";
     lblSTATUS.Size = new System.Drawing.Size(0, 17);
     lblSTATUS.Text = "esperando acción...";
     lblSTATUS.Font = new Font("Microsoft Sans Serif", 11);
     //
     // btnSUMA
     //
     btnSUMA.Font = new System.Drawing.Font("Microsoft Sans Serif", 22F, System.Drawing.FontStyle.Bold);
     btnSUMA.Location = new System.Drawing.Point(260, 51);
     btnSUMA.Name = "btnSUMA";
     btnSUMA.Size = new System.Drawing.Size(40, 40);
     btnSUMA.TabIndex = 11;
     btnSUMA.Text = "+";
     btnSUMA.UseVisualStyleBackColor = true;
     //
     // btn2
     //
     btn2.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Bold);
     btn2.Location = new System.Drawing.Point(93, 51);
     btn2.Name = "btn2";
     btn2.Size = new System.Drawing.Size(55, 55);
     btn2.TabIndex = 15;
     btn2.Text = "2";
     btn2.UseVisualStyleBackColor = true;
     //
     // btn3
     //
     btn3.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Bold);
     btn3.Location = new System.Drawing.Point(154, 51);
     btn3.Name = "btn3";
     btn3.Size = new System.Drawing.Size(55, 55);
     btn3.TabIndex = 16;
     btn3.Text = "3";
     btn3.UseVisualStyleBackColor = true;
//.........这里部分代码省略.........
开发者ID:GeMaths,项目名称:calculadoraADSOA,代码行数:101,代码来源:GUI.cs

示例6: Main

        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Form form = new Form();
            FlowLayoutPanel flowLayoutPanelTop;
            RadioButton radioButtonText;
            RadioButton radioButtonNumber;
            ComboBox comboBox;
            Panel panelFill;
            TextBox textBoxInput;
            TextBox textBoxOutput;
            StatusStrip statusStrip;
            ToolStripStatusLabel statusLabel;

            // 布局
            {
                flowLayoutPanelTop = new FlowLayoutPanel();
                radioButtonText = new RadioButton();
                radioButtonNumber = new RadioButton();
                comboBox = new ComboBox();
                panelFill = new Panel();
                textBoxInput = new TextBox();
                textBoxOutput = new TextBox();
                statusStrip = new StatusStrip();
                statusLabel = new ToolStripStatusLabel();
                flowLayoutPanelTop.SuspendLayout();
                panelFill.SuspendLayout();
                statusStrip.SuspendLayout();
                form.SuspendLayout();
                //
                // flowLayoutPanel1
                //
                flowLayoutPanelTop.Controls.Add(radioButtonText);
                flowLayoutPanelTop.Controls.Add(radioButtonNumber);
                flowLayoutPanelTop.Controls.Add(comboBox);
                flowLayoutPanelTop.Dock = DockStyle.Top;
                flowLayoutPanelTop.Location = new Point(0, 0);
                flowLayoutPanelTop.Name = "flowLayoutPanel1";
                flowLayoutPanelTop.Size = new Size(363, 30);
                flowLayoutPanelTop.TabIndex = 0;
                //
                // radioButton1
                //
                radioButtonText.AutoSize = true;
                radioButtonText.Location = new Point(3, 3);
                radioButtonText.Name = "radioButton1";
                radioButtonText.Size = new Size(47, 16);
                radioButtonText.TabIndex = 0;
                radioButtonText.TabStop = true;
                radioButtonText.Text = "文本";
                radioButtonText.UseVisualStyleBackColor = true;
                //
                // radioButton2
                //
                radioButtonNumber.AutoSize = true;
                radioButtonNumber.Location = new Point(56, 3);
                radioButtonNumber.Name = "radioButton2";
                radioButtonNumber.Size = new Size(47, 16);
                radioButtonNumber.TabIndex = 0;
                radioButtonNumber.TabStop = true;
                radioButtonNumber.Text = "数字";
                radioButtonNumber.UseVisualStyleBackColor = true;
                //
                // comboBox1
                //
                comboBox.FormattingEnabled = true;
                comboBox.Location = new Point(109, 3);
                comboBox.Name = "comboBox1";
                comboBox.Size = new Size(121, 20);
                comboBox.TabIndex = 1;

                comboBox.AutoCompleteSource = AutoCompleteSource.ListItems;
                comboBox.AutoCompleteMode = AutoCompleteMode.Suggest;
                //
                // panel1
                //
                panelFill.Controls.Add(textBoxOutput);
                panelFill.Controls.Add(textBoxInput);
                panelFill.Dock = DockStyle.Fill;
                panelFill.Location = new Point(0, 30);
                panelFill.Name = "panel1";
                panelFill.Size = new Size(363, 230);
                panelFill.TabIndex = 1;
                //
                // textBox1
                //
                textBoxInput.Dock = DockStyle.Top;
                textBoxInput.Location = new Point(0, 0);
                textBoxInput.Multiline = true;
                textBoxInput.Name = "textBox1";
                textBoxInput.Size = new Size(363, 74);
                textBoxInput.TabIndex = 0;
                //
                // textBox2
                //
                textBoxOutput.Dock = DockStyle.Bottom;
                textBoxOutput.Location = new Point(0, 80);
                textBoxOutput.Multiline = true;
//.........这里部分代码省略.........
开发者ID:GHScan,项目名称:DailyProjects,代码行数:101,代码来源:Program.cs

示例7: InitializeComponent

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent() {
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
			System.Windows.Forms.TableLayoutPanel tableTopRight;
			System.Windows.Forms.TableLayoutPanel tableTopLeft;
			System.Windows.Forms.Label lblEnOld;
			System.Windows.Forms.Label lblEnNew;
			System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
			System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
			System.Windows.Forms.StatusStrip statusStrip;
			this.tableTopAll = new System.Windows.Forms.TableLayoutPanel();
			this.txtEnNew = new System.Windows.Forms.TextBox();
			this.btnEnNew = new System.Windows.Forms.Button();
			this.txtEnOld = new System.Windows.Forms.TextBox();
			this.btnEnOld = new System.Windows.Forms.Button();
			this.lblStatus = new System.Windows.Forms.ToolStripStatusLabel();
			this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
			this.menuStrip = new System.Windows.Forms.MenuStrip();
			this.changeFontToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			this.exportChangesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			this.fontDialog = new System.Windows.Forms.FontDialog();
			this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
			this.btnDoWork = new System.Windows.Forms.Button();
			this.editor = new Updater.Common.EditorTabControl();
			tableTopRight = new System.Windows.Forms.TableLayoutPanel();
			tableTopLeft = new System.Windows.Forms.TableLayoutPanel();
			lblEnOld = new System.Windows.Forms.Label();
			lblEnNew = new System.Windows.Forms.Label();
			toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
			toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
			statusStrip = new System.Windows.Forms.StatusStrip();
			this.tableTopAll.SuspendLayout();
			tableTopRight.SuspendLayout();
			tableTopLeft.SuspendLayout();
			statusStrip.SuspendLayout();
			this.menuStrip.SuspendLayout();
			this.SuspendLayout();
			//
			// tableTopAll
			//
			resources.ApplyResources(this.tableTopAll, "tableTopAll");
			this.tableTopAll.Controls.Add(tableTopRight, 1, 1);
			this.tableTopAll.Controls.Add(tableTopLeft, 0, 1);
			this.tableTopAll.Controls.Add(lblEnOld, 0, 0);
			this.tableTopAll.Controls.Add(lblEnNew, 1, 0);
			this.tableTopAll.Name = "tableTopAll";
			//
			// tableTopRight
			//
			resources.ApplyResources(tableTopRight, "tableTopRight");
			tableTopRight.Controls.Add(this.txtEnNew, 0, 0);
			tableTopRight.Controls.Add(this.btnEnNew, 1, 0);
			tableTopRight.Name = "tableTopRight";
			//
			// txtEnNew
			//
			resources.ApplyResources(this.txtEnNew, "txtEnNew");
			this.txtEnNew.Name = "txtEnNew";
			this.txtEnNew.ReadOnly = true;
			//
			// btnEnNew
			//
			resources.ApplyResources(this.btnEnNew, "btnEnNew");
			this.btnEnNew.Name = "btnEnNew";
			this.btnEnNew.UseVisualStyleBackColor = true;
			this.btnEnNew.Click += new System.EventHandler(this.btnEnNew_Click);
			//
			// tableTopLeft
			//
			resources.ApplyResources(tableTopLeft, "tableTopLeft");
			tableTopLeft.Controls.Add(this.txtEnOld, 0, 0);
			tableTopLeft.Controls.Add(this.btnEnOld, 1, 0);
			tableTopLeft.Name = "tableTopLeft";
			//
			// txtEnOld
			//
			resources.ApplyResources(this.txtEnOld, "txtEnOld");
			this.txtEnOld.Name = "txtEnOld";
			this.txtEnOld.ReadOnly = true;
			//
			// btnEnOld
			//
			resources.ApplyResources(this.btnEnOld, "btnEnOld");
			this.btnEnOld.Name = "btnEnOld";
			this.btnEnOld.UseVisualStyleBackColor = true;
			this.btnEnOld.Click += new System.EventHandler(this.btnEnOld_Click);
			//
			// lblEnOld
			//
			resources.ApplyResources(lblEnOld, "lblEnOld");
			lblEnOld.Name = "lblEnOld";
			lblEnOld.Text = global::Updater.Common.Properties.Settings.Default.StepOneExplanation;
			//
			// lblEnNew
			//
			resources.ApplyResources(lblEnNew, "lblEnNew");
			lblEnNew.Name = "lblEnNew";
//.........这里部分代码省略.........
开发者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

 private void Diseño_Forma()
 {
     #region Creando controles de la forma
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Menu_principal));
     statusStrip1 = new System.Windows.Forms.StatusStrip();
     Barra_menu = new System.Windows.Forms.ToolStrip();
     toolStripC = new System.Windows.Forms.ToolStripSeparator();
     toolStripP = new System.Windows.Forms.ToolStripSeparator();
     toolStripR = new System.Windows.Forms.ToolStripSeparator();
     toolStripI = new System.Windows.Forms.ToolStripSeparator();
     toolStripF = new System.Windows.Forms.ToolStripSeparator();
     toolStripM = new System.Windows.Forms.ToolStripSeparator();
     toolStripS = new System.Windows.Forms.ToolStripSeparator();
     Bttn_Cliente = new System.Windows.Forms.ToolStripButton();
     toolStripTU = new System.Windows.Forms.ToolStripSeparator();
     bttn_Proveedores = new System.Windows.Forms.ToolStripButton();
     bttn_split_Reportes = new System.Windows.Forms.ToolStripSplitButton();
     bttn_split_Inventarios = new System.Windows.Forms.ToolStripSplitButton();
     bttn_split_Financiero = new System.Windows.Forms.ToolStripSplitButton();
     bttn_split_Mantenimiento = new System.Windows.Forms.ToolStripSplitButton();
     bttn_split_Seguridad = new System.Windows.Forms.ToolStripSplitButton();
     bttn_Cerrarsesion = new System.Windows.Forms.ToolStripButton();
     tool_Label_Usuario = new System.Windows.Forms.ToolStripStatusLabel();
     tool_label_Hora = new System.Windows.Forms.ToolStripStatusLabel();
     tool_label_Fecha = new System.Windows.Forms.ToolStripStatusLabel();
     inventariosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     inventariosMateriaPrimaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     inventariosProductoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     producciónToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     ordenDePeladoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     cajaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     ventasPedidosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     AbonosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     Abonos_ProveedorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     PedidosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     tipoDePiezasToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     TipodeMateriaPrimaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     Tipo_UsuarioToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     productosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     almacénToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     materiaPrimaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     UsuarioToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     RespaldoToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     InformacionToolStripMenuItem1= new System.Windows.Forms.ToolStripMenuItem();
     tool_Separador_Tipos = new System.Windows.Forms.ToolStripSeparator();
     tool_Separator = new System.Windows.Forms.ToolStripSeparator();
     pic_Logo = new System.Windows.Forms.PictureBox();
     Capturar_Imagenes = new System.Windows.Forms.Button();
     Codigo_Barra = new System.Windows.Forms.Button();
     Pedidos_Clientes = new System.Windows.Forms.Button();
     Pedidos_Proveedores = new System.Windows.Forms.Button();
     //
     //REPORTES
     this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.clientesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.proveedoresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.financieroToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.promedioDeVentasToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.consumoDelClienteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.gananciasToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.deudoresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.muestrasToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.gastosIndirectosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.cortesDeCajaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.ventasDeCadaProductoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.administrativoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.pedidosPendientesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.historialDePedidosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.producciónToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.producciónDeProductoToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.HistorialDeProduccionToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.DeudaaProveedoresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.HistorialDeAbonosClientesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.DeudaaClientesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.HistorialDeAbonosProveedoresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.ComprarInventToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     //
     statusStrip1.SuspendLayout();
     Barra_menu.SuspendLayout();
     SuspendLayout();
     #endregion
     //
     // Pedidos_Clientes
     //
     Pedidos_Clientes.BackgroundImage = global::Sistema_Shajobe.Properties.Resources.Pedidos_clientes;
     Pedidos_Clientes.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     Pedidos_Clientes.Click += new System.EventHandler(Historial_PedidosStripMenuItem_Click);
     Pedidos_Clientes.Location = new System.Drawing.Point(20, 205);
     Pedidos_Clientes.Name = "Pedidos_Clientes";
     Pedidos_Clientes.Size = new System.Drawing.Size(75, 75);
     Pedidos_Clientes.Enabled = false;
     //
     // Pedidos_Proveedores
     //
     Pedidos_Proveedores.BackgroundImage = global::Sistema_Shajobe.Properties.Resources.Pedidos_proveedor;
     Pedidos_Proveedores.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     Pedidos_Proveedores.Click += new System.EventHandler(Historial_PedidosProveedoresStripMenuItem_Click);
     Pedidos_Proveedores.Location = new System.Drawing.Point(20, 285);
     Pedidos_Proveedores.Name = "Pedidos_Proveedores";
     Pedidos_Proveedores.Size = new System.Drawing.Size(75, 75);
//.........这里部分代码省略.........
开发者ID:josericardo-ac,项目名称:Titulacion,代码行数:101,代码来源:Menu+principal.cs


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