示例#1
0
        private void helloWordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            controleHelloWorld += 1;
            Frm_HelloWorld_UC U = new Frm_HelloWorld_UC();

            U.Dock = DockStyle.Fill;
            TabPage TB = new TabPage();

            TB.Name       = $"Hello World {controleHelloWorld}";
            TB.Text       = $"Hello World {controleHelloWorld}";
            TB.ImageIndex = 5;
            TB.Controls.Add(U);
            Tbc_Principal.TabPages.Add(TB);
        }
        private void helloWorldToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ControleHelloWorld += 1;
            Frm_HelloWorld_UC U = new Frm_HelloWorld_UC();

            U.Dock = DockStyle.Fill;
            TabPage TB = new TabPage();

            TB.Name       = "Hello World " + ControleHelloWorld;
            TB.Text       = "Hello World " + ControleHelloWorld;
            TB.ImageIndex = 1;
            TB.Controls.Add(U);
            Tbc_Aplicacoes.TabPages.Add(TB);
        }
示例#3
0
        private void HelloWorldToolStripMenuItem_Click(object sender, EventArgs e)
        {
            controleHW++;
            var u = new Frm_HelloWorld_UC();

            u.Dock = DockStyle.Fill;
            var tb = new TabPage();

            tb.Name       = "Hello World " + controleHW;
            tb.Text       = "Hello World " + controleHW;
            tb.ImageIndex = 1;
            tb.Controls.Add(u);
            Tbc_Aplicacoes.TabPages.Add(tb);
        }