Ejemplo n.º 1
0
 public frmMainForm()
 {
     InitializeComponent();
     Form s = new frmHome();
     s.TopLevel = false;
     s.Visible = true;
     s.Padding = new Padding(0);
     s.Location = new Point(0, 0);
     pnlHome.Controls.Add(s);
     pnlHome.Size = new Size(pnlHome.Parent.Width - 6, pnlHome.Parent.Height - 21);
     s.Size = pnlHome.Size;
 }
Ejemplo n.º 2
0
        private void btnFuntion_click(object sender, EventArgs e)
        {
            //form
            if (((DevComponents.DotNetBar.ButtonX)sender).Text == "Trang chủ")
            {
                Form s;
                s          = new frmHome();
                s.TopLevel = false;
                s.Visible  = true;
                s.Location = new Point(0, 0);
                AddForm(s, ((DevComponents.DotNetBar.ButtonX)sender).Text);
            }

            if (((DevComponents.DotNetBar.ButtonX)sender).Text == "Giới thiệu công ty")
            {
                Form s = new frmIntroCompany();
                s.TopLevel = false;
                s.Visible  = true;
                s.Location = new Point(0, 0);
                AddForm(s, ((DevComponents.DotNetBar.ButtonX)sender).Text);
            }
        }
Ejemplo n.º 3
0
        private void btnFuntion_click(object sender, EventArgs e)
        {
            //form
            if (((DevComponents.DotNetBar.ButtonX)sender).Text == "Trang chủ")
            {
                Form s;
                s = new frmHome();
                s.TopLevel = false;
                s.Visible = true;
                s.Location = new Point(0, 0);
                AddForm(s, ((DevComponents.DotNetBar.ButtonX)sender).Text);
            }

            if(((DevComponents.DotNetBar.ButtonX)sender).Text== "Giới thiệu công ty")
            {
                Form s = new frmIntroCompany();
                s.TopLevel = false;
                s.Visible = true;
                s.Location = new Point(0, 0);
                AddForm(s, ((DevComponents.DotNetBar.ButtonX)sender).Text);
            }
        }