New to Telerik UI for WinForms? Start a free 30-day trial

Implementing a chrome window

Updated on Nov 3, 2026
Product VersionProductAuthorLast modified
Q2 2008RadControls for WinFormsTsvetan RaikovSeptember 10, 2008

How To

Implement a chrome window with RadControls for WinForms

Solution

To implement a chrome window follow the steps below:

1.Inherit your form from ShapedForm to control the shape, border and background color of the form:

C#
using System;  
using System.Windows.Forms;  
using Telerik.WinControls;  
using Telerik.WinControls.UI;  
 
 
public partial class Form1: ShapedForm  
{  
      public Form9()  
      {  
            this.Shape = new RoundRectShape(5);  
            this.BorderColor = Color.Blue;  
            this.BorderWidth = 2;  
 
 
            InitializeComponent();  
      }  
} 

2.Drop a RadTitleBar control to the form and dock it to the top. If the selected RadTitleBar theme does not have system buttons, drop an ImageList and fill it with three images (minimize, maximize and close). Associate the ImageList with RadTitleBar control or use the Visual Style Builder to style the title bar. NOTE that the Maximize option of the form will work correctly only if the FormBorderStyle, MinimizeBox, MaximizeBox and ControlBox properties have default values.

3.Run the form.

The end result should be similar to the following:

shapedform

In this article
How ToSolution
Not finding the help you need?
Contact Support