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


C# Panel.SendToBack方法代码示例

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


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

示例1: QRCodeDecoderGUIExample

 internal QRCodeDecoderGUIExample()
 {
     System.Console.Out.WriteLine("Starting QRCode Decoder GUI Example ...");
     //UPGRADE_TODO: Method 'java.awt.Component.setSize' was converted to 'System.Windows.Forms.Control.Size' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtComponentsetSize_int_int'"
     Size = new System.Drawing.Size(400, 400);
     Closing += new System.ComponentModel.CancelEventHandler(this.QRCodeDecoderGUIExample_Closing_EXIT_ON_CLOSE);
     menuBar = new System.Windows.Forms.MainMenu();
     openMenu = new System.Windows.Forms.MenuItem();
     openMenu.Text = "Open Image";
     openMenu.Click += new System.EventHandler(this.actionPerformed);
     SupportClass.CommandManager.CheckCommand(openMenu);
     menuBar.MenuItems.Add(openMenu);
     Menu = menuBar;
     //UPGRADE_TODO: Constructor 'javax.swing.JTextField.JTextField' was converted to 'System.Windows.Forms.TextBox' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaxswingJTextFieldJTextField_int'"
     url = new System.Windows.Forms.TextBox();
     //UPGRADE_TODO: Method 'javax.swing.text.JTextComponent.setText' was converted to 'System.Windows.Forms.TextBoxBase.Text' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaxswingtextJTextComponentsetText_javalangString'"
     url.Text = "(Or input image url here.)";
     button = SupportClass.ButtonSupport.CreateStandardButton("Open from URL");
     button.Click += new System.EventHandler(this.actionPerformed);
     SupportClass.CommandManager.CheckCommand(button);
     System.Windows.Forms.Panel urlPanel = new System.Windows.Forms.Panel();
     //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
     urlPanel.Controls.Add(url);
     //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
     urlPanel.Controls.Add(button);
     button = SupportClass.ButtonSupport.CreateStandardButton("URL");
     //UPGRADE_TODO: Method 'javax.swing.JFrame.getContentPane' was converted to 'System.Windows.Forms.Form' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaxswingJFramegetContentPane'"
     //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent_javalangObject'"
     ((System.Windows.Forms.ContainerControl) this).Controls.Add(urlPanel);
     urlPanel.Dock = System.Windows.Forms.DockStyle.Top;
     urlPanel.SendToBack();
     //UPGRADE_TODO: Constructor may need to be changed depending on function performed by the 'System.Windows.Forms.FileDialog' object. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1270'"
     chooser = SupportClass.FileDialogSupport.CreateOpenFileDialog("Open QR Code Image");
     //UPGRADE_ISSUE: Method 'javax.swing.JFileChooser.setFileFilter' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaxswingJFileChoosersetFileFilter_javaxswingfilechooserFileFilter'"
     chooser.setFileFilter(new ImageFileFilter());
     //UPGRADE_TODO: Method 'java.awt.Component.setLocation' was converted to 'System.Windows.Forms.Control.Location' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtComponentsetLocation_int_int'"
     Location = new System.Drawing.Point(300, 200);
     SupportClass.SelectText(url, 0, url.Text.Length);
     //UPGRADE_TODO: Method 'java.awt.Component.setVisible' was converted to 'System.Windows.Forms.Control.Visible' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtComponentsetVisible_boolean'"
     //UPGRADE_TODO: 'System.Windows.Forms.Application.Run' must be called to start a main form. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1135'"
     Visible = true;
 }
开发者ID:Momo2GitHub,项目名称:QKCalender,代码行数:42,代码来源:QRCodeDecoderGUIExample.cs

示例2: abrirToolStripMenuItem_Click


//.........这里部分代码省略.........
     // pic_Lupa
     //
     pic_Lupa.BackgroundImage = ((System.Drawing.Image)(global::Sistema_Shajobe.Properties.Resources.lupa));
     pic_Lupa.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     pic_Lupa.Location = new System.Drawing.Point(21, 19);
     pic_Lupa.Name = "pic_Lupa";
     pic_Lupa.Size = new System.Drawing.Size(100, 101);
     pic_Lupa.TabIndex = 1;
     pic_Lupa.TabStop = false;
     //
     // data_resultado
     //
     data_resultado.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     data_resultado.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
     Id,
     Nombre,
     Apellido_P,
     Apellido_M});
     data_resultado.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
     data_resultado.Location = new System.Drawing.Point(21, 136);
     data_resultado.Name = "data_resultado";
     data_resultado.RowHeadersWidth = 25;
     data_resultado.RowTemplate.Height = 50;
     data_resultado.Size = new System.Drawing.Size(475, 170);
     data_resultado.TabIndex = 2;
     //
     // Apellido_M
     //
     Apellido_M.HeaderText = "Apellido Materno";
     Apellido_M.Name = "Apellido_M";
     //
     // Apellido_P
     //
     Apellido_P.HeaderText = "Apellido Paterno";
     Apellido_P.Name = "Apellido_P";
     //
     // Nombre
     //
     Nombre.HeaderText = "Nombre";
     Nombre.Name = "Nombre";
     //
     // Id
     //
     Id.HeaderText = "Id";
     Id.Name = "Id";
     Id.Visible = false;
     //
     // lbl_Etiqueta
     //
     lbl_Etiqueta.AutoSize = true;
     lbl_Etiqueta.Location = new System.Drawing.Point(127, 26);
     lbl_Etiqueta.Name = "lbl_Etiqueta";
     lbl_Etiqueta.Size = new System.Drawing.Size(419, 13);
     lbl_Etiqueta.TabIndex = 3;
     lbl_Etiqueta.Text = "Escriba el nombre ó uno de los apellidos del cliente a buscar";
     //
     // bttn_Busqueda
     //
     bttn_Busqueda.BackgroundImage = ((System.Drawing.Image)(global::Sistema_Shajobe.Properties.Resources.Siguiente));
     bttn_Busqueda.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     bttn_Busqueda.Location = new System.Drawing.Point(274, 48);
     bttn_Busqueda.Name = "bttn_Busqueda";
     bttn_Busqueda.Size = new System.Drawing.Size(62, 54);
     bttn_Busqueda.TabIndex = 4;
     bttn_Busqueda.UseVisualStyleBackColor = true;
     bttn_Busqueda.Click += new System.EventHandler(bttn_Busqueda_Click);
     //
     // panel_Busqueda
     //
     panel_Busqueda.Controls.Add(bttn_Busqueda);
     panel_Busqueda.Controls.Add(lbl_Etiqueta);
     panel_Busqueda.Controls.Add(data_resultado);
     panel_Busqueda.Controls.Add(pic_Lupa);
     panel_Busqueda.Controls.Add(txt_Busqueda);
     panel_Busqueda.BorderStyle = BorderStyle.FixedSingle;
     panel_Busqueda.Enabled = false;
     panel_Busqueda.Location = new System.Drawing.Point(12, 88);
     panel_Busqueda.Name = "panel_Busqueda";
     panel_Busqueda.Size = new System.Drawing.Size(520, 300);
     panel_Busqueda.TabIndex = 5;
     panel_Busqueda.Visible = false;
     //panel_Busqueda.BringToFront();
     panel_Busqueda.SendToBack();
     //CARACTERISTICA DE AUTOCOMPLETADO EN TXT_BUSQUEDA
     txt_Busqueda.AutoCompleteCustomSource = Autocomplete();
     txt_Busqueda.AutoCompleteMode = AutoCompleteMode.Suggest;
     txt_Busqueda.AutoCompleteSource = AutoCompleteSource.CustomSource;
     Controls.Add(panel_Busqueda);
     panel_Busqueda.Visible = true;
     panel_Busqueda.Enabled = true;
     groupBox_Abonos.Visible = false;
     groupBox_DatosCliente.Visible = false;
     lbl_Abono.Visible = false;
     lbl_SaldoAct.Visible = false;
     lbl_SaldoAnt.Visible = false;
     txt_Abono.Visible = false;
     txt_SaldoActual.Visible = false;
     txt_SaldoAnterior.Visible = false;
     bttn_Pagar.Visible = false;
 }
开发者ID:josericardo-ac,项目名称:Titulacion,代码行数:101,代码来源:Abonos.cs

示例3: LoadPanel

        /// <summary>
        /// Loads the current panel
        /// </summary>
        private void LoadPanel(Page page)
        {
            DataRow row = page.GetMetadata().GetPageSetupData(page.GetView());
            if (_fieldPanel != null)
            {
                foreach (Control control in _fieldPanel.Controls)
                {
                    control.Font = null;       //GDI Memory leak
                }
            }
            _fieldPanel = new Panel();

            float dpiX;
            Graphics graphics = _fieldPanel.CreateGraphics();
            dpiX = graphics.DpiX;
             try
            {
            int height = (int)row["Height"];
            int width = (int)row["Width"];

            if (dpiX != 96)
            {
                float scaleFactor = (dpiX * 1.041666666f) / 100;
                height = Convert.ToInt32(((float)height) * (float)scaleFactor);
                width = Convert.ToInt32(((float)width) * (float)scaleFactor);
            }

            if (row["Orientation"].ToString() == "Landscape")
            {
                _fieldPanel.Size = new System.Drawing.Size(height, width);
            }
            else
            {
                _fieldPanel.Size = new System.Drawing.Size(width, height);
            }

            canvas.Size = _fieldPanel.Size;
            canvas.SetPanelProperties(_fieldPanel);

            currentPage = page;

            ControlFactory factory = ControlFactory.Instance;
            canvas.canvasPanel.Size = new Size(_fieldPanel.Size.Width, _fieldPanel.Size.Height);

            List<Control> controls = factory.GetPageControls(page, canvas.canvasPanel.Size);
            canvas.AddControlsToPanel(controls, _fieldPanel);

            SetZeeOrderOfGroups(_fieldPanel);

            _fieldPanel.Visible = false;
            _fieldPanel.SendToBack();

            foreach (Control controlOnPanel in _fieldPanel.Controls)
            {
                if (controlOnPanel is DataGridView)
                {
                    ((DataGridView)controlOnPanel).DataSource = null;
                }

            }
            while (canvas.canvasPanel.Controls.Count > 0)
                canvas.canvasPanel.Controls[0].Dispose();//User Handles Memory leak
            // canvas.canvasPanel.Controls.Clear();
            canvas.canvasPanel.Controls.Add(_fieldPanel);
            }
             finally
             {
             }
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:72,代码来源:GuiMediator.cs

示例4: DialogEdit

        public DialogEdit(Control Parent, Molecule Mol, List<int> SelIdx)
		{
            // super(Parent, "Edit Molecule", true)

            mol = Mol.Clone();
            aselidx = SelIdx;
            //UPGRADE_ISSUE: The following fragment of code could not be parsed and was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1156'"
            bselidx = new List<int>();
            for (int n = 1; n <= mol.NumBonds(); n++)
                if (aselidx.IndexOf(mol.BondFrom(n)) >= 0 && aselidx.IndexOf(mol.BondTo(n)) >= 0)
                    bselidx.Add(n);

            //UPGRADE_ISSUE: Method 'javax.swing.JDialog.setLayout' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaxswingJDialogsetLayout_javaawtLayoutManager'"
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtBorderLayout'"
            /*
            setLayout(new BorderLayout());*/

            atoms = new AnonymousClassJTable(this, CompileAtomData(), new System.String[] { "#", "El", "X", "Y", "Charge", "Unpaired", "HExplicit" });
            bonds = new AnonymousClassJTable1(this, CompileBondData(), new System.String[] { "#", "From", "To", "Order", "Type" });

            //UPGRADE_TODO: Method 'javax.swing.table.TableColumn.setCellEditor' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1095'"
            //UPGRADE_TODO: The equivalent in .NET for method 'javax.swing.table.TableColumnModel.getColumn' may return a different value. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1043'"
            // ((System.Data.DataTable)atoms.DataSource).Columns[0].setCellEditor(null);
            System.Windows.Forms.ComboBox bondTypes = new System.Windows.Forms.ComboBox();
            for (int n = 0; n < BOND_TYPES.Length; n++)
                bondTypes.Items.Add(BOND_TYPES[n]);
            //UPGRADE_TODO: Method 'javax.swing.table.TableColumn.setCellEditor' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1095'"
            //UPGRADE_TODO: The equivalent in .NET for method 'javax.swing.table.TableColumnModel.getColumn' may return a different value. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1043'"
            //UPGRADE_ISSUE: Constructor 'javax.swing.DefaultCellEditor.DefaultCellEditor' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaxswingDefaultCellEditor'"
            // TODO: Have to see this in action before I can tel what they need to do. 
            // ((System.Data.DataTable)bonds.DataSource).Columns[4].setCellEditor(new DefaultCellEditor(bondTypes));

            System.Windows.Forms.Panel tabAtoms = new System.Windows.Forms.Panel(), tabBonds = new System.Windows.Forms.Panel();
            //UPGRADE_ISSUE: Method 'java.awt.Container.setLayout' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtContainersetLayout_javaawtLayoutManager'"
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtBorderLayout'"
            /*
            tabAtoms.setLayout(new BorderLayout());*/
            //UPGRADE_ISSUE: Method 'java.awt.Container.setLayout' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtContainersetLayout_javaawtLayoutManager'"
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtBorderLayout'"
            /*
            tabBonds.setLayout(new BorderLayout());*/

            //UPGRADE_ISSUE: Method 'javax.swing.JTable.setPreferredScrollableViewportSize' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaxswingJTablesetPreferredScrollableViewportSize_javaawtDimension'"
            
            // TODO: atoms.setPreferredScrollableViewportSize(new System.Drawing.Size(350, 200));
            //UPGRADE_ISSUE: Method 'javax.swing.JTable.setPreferredScrollableViewportSize' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaxswingJTablesetPreferredScrollableViewportSize_javaawtDimension'"
            // TODO: bonds.setPreferredScrollableViewportSize(new System.Drawing.Size(350, 200));

            //UPGRADE_TODO: Constructor 'javax.swing.JScrollPane.JScrollPane' was converted to 'System.Windows.Forms.ScrollableControl.ScrollableControl' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaxswingJScrollPaneJScrollPane_javaawtComponent'"
            System.Windows.Forms.ScrollableControl temp_scrollablecontrol2;
            temp_scrollablecontrol2 = new System.Windows.Forms.ScrollableControl();
            temp_scrollablecontrol2.AutoScroll = true;
            temp_scrollablecontrol2.Controls.Add(atoms);
            //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
            System.Windows.Forms.Control temp_Control;
            temp_Control = temp_scrollablecontrol2;
            tabAtoms.Controls.Add(temp_Control);
            //UPGRADE_TODO: Constructor 'javax.swing.JScrollPane.JScrollPane' was converted to 'System.Windows.Forms.ScrollableControl.ScrollableControl' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaxswingJScrollPaneJScrollPane_javaawtComponent'"
            System.Windows.Forms.ScrollableControl temp_scrollablecontrol4;
            temp_scrollablecontrol4 = new System.Windows.Forms.ScrollableControl();
            temp_scrollablecontrol4.AutoScroll = true;
            temp_scrollablecontrol4.Controls.Add(bonds);
            //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
            System.Windows.Forms.Control temp_Control2;
            temp_Control2 = temp_scrollablecontrol4;
            tabBonds.Controls.Add(temp_Control2);

            tabs = new System.Windows.Forms.TabControl();
            //UPGRADE_TODO: Method 'javax.swing.JTabbedPane.addTab' was converted to 'SupportClass.TabControlSupport.AddTab' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaxswingJTabbedPaneaddTab_javalangString_javaawtComponent'"
            SupportClass.TabControlSupport.AddTab(tabs, "Atoms", tabAtoms);
            //UPGRADE_TODO: Method 'javax.swing.JTabbedPane.addTab' was converted to 'SupportClass.TabControlSupport.AddTab' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaxswingJTabbedPaneaddTab_javalangString_javaawtComponent'"
            SupportClass.TabControlSupport.AddTab(tabs, "Bonds", tabBonds);
            //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent_javalangObject'"
            Controls.Add(tabs);
            tabs.Dock = System.Windows.Forms.DockStyle.Fill;
            tabs.BringToFront();

            System.Windows.Forms.Panel buttons = new System.Windows.Forms.Panel();
            //UPGRADE_TODO: Constructor 'java.awt.FlowLayout.FlowLayout' was converted to 'System.Object[]' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtFlowLayoutFlowLayout_int'"
            buttons.Tag = new System.Object[] { (int)System.Drawing.ContentAlignment.TopRight, 5, 5 };
            buttons.Layout += new System.Windows.Forms.LayoutEventHandler(SupportClass.FlowLayoutResize);
            accept = SupportClass.ButtonSupport.CreateStandardButton("Accept");
            accept.Click += new System.EventHandler(this.actionPerformed);
            SupportClass.CommandManager.CheckCommand(accept);
            reject = SupportClass.ButtonSupport.CreateStandardButton("Reject");
            reject.Click += new System.EventHandler(this.actionPerformed);
            SupportClass.CommandManager.CheckCommand(reject);
            //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
            buttons.Controls.Add(accept);
            //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
            buttons.Controls.Add(reject);
            //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent_javalangObject'"
            Controls.Add(buttons);
            buttons.Dock = System.Windows.Forms.DockStyle.Bottom;
            buttons.SendToBack();

            // TODO: What does pack do? 
            // pack();
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:99,代码来源:DialogEdit.cs


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