コード例 #1
0
        public void Inicijaliziraj_Forma()
        {
            this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            this.Location        = new System.Drawing.Point(0, 0);
            this.Size            = new System.Drawing.Size(800, 600);

            lev    = new Panel();
            desen  = new Panel();
            centar = new Panel();

            this.Controls.Add(lev);
            this.Controls.Add(desen);
            this.Controls.Add(centar);

            this.lev.Location  = new Point(0, 0);
            this.lev.Size      = new Size(this.Size.Width / 3, this.Size.Height / 2);
            this.lev.BackColor = Color.Gray;

            this.desen.Location  = new Point(Convert.ToInt32(this.lev.Size.Width.ToString()), 0);
            this.desen.Size      = new Size(this.Size.Width * 2 / 3, this.Size.Height / 2);
            this.desen.BackColor = Color.Blue;

            this.centar.Location  = new Point(0, Convert.ToInt32(this.lev.Size.Height.ToString()));
            this.centar.Size      = new Size(this.Width, this.Size.Height / 2);
            this.centar.BackColor = Color.Gray;

            vnesiTexBox        = new TextBox();
            vnesiTexBox.KeyUp += new KeyEventHandler(this.Enter);

            novPanelD = new RedPanel();
            this.desen.Controls.Add(novPanelD);
            novPanelD.Location    = new Point(0, 0);
            novPanelD.Size        = desen.Size;
            novPanelD.BorderStyle = BorderStyle.Fixed3D;

            novPanelC = new RedPanel();
            this.centar.Controls.Add(novPanelC);
            novPanelC.Location    = new Point(0, 0);
            novPanelC.BackColor   = Color.AntiqueWhite;
            novPanelC.BorderStyle = BorderStyle.FixedSingle;
            novPanelC.Size        = centar.Size;
        }
コード例 #2
0
        public void Inicijaliziraj_Forma()
        {
            this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            this.Location = new System.Drawing.Point(0, 0);
            this.Size = new System.Drawing.Size(800 , 600);

            lev = new Panel();
            desen = new Panel();
            centar = new Panel();

            this.Controls.Add(lev);
            this.Controls.Add(desen);
            this.Controls.Add(centar);

            this.lev.Location = new Point(0, 0);
            this.lev.Size = new Size(this.Size.Width / 3, this.Size.Height / 2);
            this.lev.BackColor = Color.Gray;

            this.desen.Location = new Point(Convert.ToInt32(this.lev.Size.Width.ToString()), 0);
            this.desen.Size = new Size(this.Size.Width * 2 / 3, this.Size.Height / 2);
            this.desen.BackColor = Color.Blue;
            
            this.centar.Location  = new Point(0,Convert.ToInt32(this.lev.Size.Height.ToString()));
            this.centar.Size = new Size(this.Width,this.Size.Height / 2);
            this.centar.BackColor = Color.Gray;

            vnesiTexBox = new TextBox();
            vnesiTexBox.KeyUp += new KeyEventHandler(this.Enter);

            novPanelD = new RedPanel();
            this.desen.Controls.Add(novPanelD);
            novPanelD.Location = new Point(0, 0);
            novPanelD.Size = desen.Size;
            novPanelD.BorderStyle = BorderStyle.Fixed3D;

            novPanelC = new RedPanel();
            this.centar.Controls.Add(novPanelC);
            novPanelC.Location = new Point(0, 0);
            novPanelC.BackColor = Color.AntiqueWhite;
            novPanelC.BorderStyle = BorderStyle.FixedSingle;
            novPanelC.Size = centar.Size;
            

        }