Hello,
I am currently using RadControls for WinForms Q1 2010 and I'm trying to change the back ground color to white on a dynamically added RadGroupBox, but it isn't working. I've tried several different approaches but all I get is a gradient looking gray background.
I am currently using RadControls for WinForms Q1 2010 and I'm trying to change the back ground color to white on a dynamically added RadGroupBox, but it isn't working. I've tried several different approaches but all I get is a gradient looking gray background.
Public Class MyRadGroupBox
Inherits Telerik.WinControls.UI.RadGroupBox
'========================================================================================================================
' This is the constructor for this class
'========================================================================================================================
Public Sub New()
Me.HeaderMargin = New System.Windows.Forms.Padding(0)
Me.HeaderText = ""
Me.Location = New System.Drawing.Point(3, 2)
Me.Name = "myRadGroupBox"
Me.Padding = New System.Windows.Forms.Padding(1)
Me.Margin = New System.Windows.Forms.Padding(1)
Me.Size = New System.Drawing.Size(500, 386)
Me.RootElement.Padding = New System.Windows.Forms.Padding(1)
'Me.RootElement.BackColor = System.Drawing.Color.White
'Me.BackColor = System.Drawing.Color.White
'Me.GroupBoxElement.BackColor = System.Drawing.Color.White
DirectCast(Me.GroupBoxElement.Content.Children(0), FillPrimitive).BackColor = System.Drawing.Color.White
End Sub
End Class