private void PrintTimer_Tick(object sender, EventArgs e) { if (pcollapsed) { Print.BringToFront(); Print.Width += 100; if (Print.Size == Print.MaximumSize) { PrintTimer.Stop(); pcollapsed = false; HomeButton.Enabled = true; EventListButton.Enabled = true; EventRegButton.Enabled = true; PrintButton.Enabled = true; } } else { Print.SendToBack(); Print.Width -= 100; if (Print.Size == Print.MinimumSize) { PrintTimer.Stop(); pcollapsed = true; HomeButton.Enabled = true; EventListButton.Enabled = true; EventRegButton.Enabled = true; PrintButton.Enabled = true; } } }