Example #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            tabControl1.TabPages.Clear();

            foreach (TipIgre t in Postavke.TipoviIgara)
            {
                TabPage         tp = new TabPage();
                PrikazRezultata pr = new PrikazRezultata();
                tp.Text = pr.tipigre = t.Ime;

                pr.Parent = tp;
                //pr.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
                pr.Dock = DockStyle.Fill;
                tp.Controls.Add(pr);


                pr.button1.Click += novaigra_handle;

                this.SuspendLayout();
                tabControl1.TabPages.Add(tp);

                this.ResumeLayout(false);
            }
        }
Example #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            tabControl1.TabPages.Clear();

            foreach (TipIgre t in Postavke.TipoviIgara)
            {
                TabPage tp = new TabPage();
                PrikazRezultata pr = new PrikazRezultata();
                tp.Text = pr.tipigre = t.Ime;

                pr.Parent = tp;
                //pr.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
                pr.Dock = DockStyle.Fill;
                tp.Controls.Add(pr);


                pr.button1.Click += novaigra_handle;

                this.SuspendLayout();
                tabControl1.TabPages.Add(tp);
               
                this.ResumeLayout(false);
            }
        }