private void GC_Resize(object sender, EventArgs e) { //groupBox1.Top = 0; //groupBox1.Left = GC.Width - groupBox1.Width - 2; //groupBox1.Height = 30; using (var g = GC.CreateGraphics()) { GC.MasterPane.SetLayout(g, PaneLayout.SingleColumn); } if ((GC.Width < 300) || (GC.Height < 300)) { for (var i = 0; i < GC.MasterPane.PaneList.Count; i++) { GC.MasterPane[i].IsFontsScaled = true; } } else { for (var i = 0; i < GC.MasterPane.PaneList.Count; i++) { GC.MasterPane[i].IsFontsScaled = false; } } }