How do you change the color of the border on a group box?

Just add paint event. private void groupBox1_Paint(object sender, PaintEventArgs e) { GroupBox box = sender as GroupBox; DrawGroupBox(box, e.Graphics, Color.Red, Color.Blue); } private void DrawGroupBox(GroupBox box, Graphics g, Color textColor, Color borderColor) { if (box != null) { Brush textBrush = new SolidBrush(textColor); Brush borderBrush = new SolidBrush(borderColor); Pen borderPen = new Pen(borderBrush); SizeF strSize … Read more

Does the GroupBox Header in WPF swallow mouse-clicks?

Ian Oakes answer stuffs up the tab order such that the header comes after the content. It’s possible to modify the control template such that the border can’t receive focus. To do this, modify the template so that the 2nd and 3rd borders (both in Grid Row 1) have IsHitTestVisible=false Complete template below <BorderGapMaskConverter x:Key=”GroupBoxBorderGapMaskConverter” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)