private void MainForm_Load(object sender, EventArgs e) { avtButton.BackgroundImageLayout = ImageLayout.Stretch; //guna2CircleButton1.BackgroundImageLayout = ImageLayout.Stretch; AccountPanel.Height = 0; AccountPanel.BringToFront(); timer2.Start(); label1.Font = new Font("Kids", 14, FontStyle.Bold); }
private void OpenChildForm(Form childForm, object btnSender) { if (activeForm != null) { activeForm.Close(); } ActivateButton(btnSender); activeForm = childForm; childForm.TopLevel = false; childForm.FormBorderStyle = FormBorderStyle.None; childForm.Dock = DockStyle.Fill; this.panelDesktopPane.Controls.Add(childForm); this.panelDesktopPane.Tag = childForm; childForm.BringToFront(); childForm.Show(); labelTitle.Text = childForm.Text; AccountPanel.BringToFront(); }
private void AccountButton_Click(object sender, EventArgs e) { sidepanel_movement(AccountButton); AccountPanel.BringToFront(); }