private void ExpandStackTrace() { txtStackTrace.Visible = true; statusStrip1.Visible = true; btnDetail.Text = "Detail <<"; m_stateCollapse = eStateCollapse.Expanded; this.FormBorderStyle = FormBorderStyle.Sizable; this.Size = m_lastSize; }
private void CollapseStackTrace() { m_lastSize = this.Size; txtStackTrace.Visible = false; statusStrip1.Visible = false; btnDetail.Text = "Detail >>"; m_stateCollapse = eStateCollapse.Collapsed; this.FormBorderStyle = FormBorderStyle.FixedSingle; this.Height = SystemInformation.CaptionHeight + SystemInformation.BorderSize.Height + pnlButton.Location.Y + pnlButton.Height + 10; }