示例#1
0
        private void btnBill_Click(object sender, EventArgs e)
        {
            ListBill f = new ListBill();

            panelLoadData.Controls.Add(f);
            f.BringToFront();
        }
示例#2
0
        private void buttonBill_Click(object sender, EventArgs e)
        {
            panelMove.Height     = buttonBill.Height;
            panelMove.Top        = buttonBill.Top;
            buttonBill.BackColor = Color.FromArgb(136, 232, 242);
            //LoadData lên form
            ListBill f = new ListBill();

            this.panelLoadData.Controls.Add(f);
            f.BringToFront();
            //button trả về màu cũ khi qua button khác
            buttonFood.BackColor  = Color.FromArgb(5, 199, 242);
            buttonHome.BackColor  = Color.FromArgb(5, 199, 242);
            buttonTable.BackColor = Color.FromArgb(5, 199, 242);
        }