Ejemplo n.º 1
0
        /// <summary>
        /// Inserta un nuevo tab.
        /// </summary>
        public void nuevoTab()
        {
            EditorPage ed = new EditorPage("nuevo" + (this.Controls.Count + 1));

            this.Controls.Add(ed); //insertamos
            this.SelectTab(ed);    //hacemos la nueva visible
        }
Ejemplo n.º 2
0
        public editor() : base()
        {
            ep1 = new EditorPage("nuevo");
            //
            // editorTabs
            //
            this.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                 | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
            //this.Controls.Add(this.tabPage1);
            this.Location      = new System.Drawing.Point(3, 3);
            this.Name          = "editorTabs";
            this.SelectedIndex = 0;
            //this.Size = new System.Drawing.Size(586, 200);
            //this.Size = new System.Drawing.Size(616, 260);
            this.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.TabIndex = 0;
            //insertamos nueva pagina de tab

            this.Controls.Add(ep1);
        }