Thanks for contacting us and for your question. The code snippet that you found is not relevant to the latest version of RadControls for WinForms since the RadForm
control has been rewritten from scratch and its element hierarchy has also been changed.
As you have already find out, you can change the background color
of the form by using the BackColor
property. However, if you would like to achieve a Gradient effect consisting of multiple colors, you could use a RadPanel
control docked to fill the client area of the form. You can take a look at the following help article as a reference on how to build a gradient filled panel:
Creating a RadPanel with Gradient Background
After you have docked the panel to fill the client area of your form, you can drop your controls on it the same way as you would on a normal RadForm
I hope this helps. Do not hesitate to write back if you need further assistance.
All the best,
the Telerik team