$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Form Control for Window Forms
Add rich skin to Windows Forms to display MS Office Windows Forms appearance
Home > WinForms UI Controls > User Manual > Form Elements in C#

Customize Form Elements to Form Control

The Kettic Form Control provides large flexible customization support. Its structure includes various elements, such as form title bar element, form border primitive and a form image border primitive, which can be easily customized as demand. We are going through the process of accessing these elements and customizing them in the tutorial below.

How to Access the Title Bar Element

In the Kettic Form, the FormTitleBarElement is placed on the top of the form. With this element of the title bar, developers can easily show an icon, text, and buttons of the minimize, maximize, restore and close behavior. To access the element, we can use the C# code snippet below.

void Form1_Shown(object sender, EventArgs e)
{
this.FormElement.TitleBar.RestoreButton.Enabled = false;
this.FormElement.TitleBar.CloseButton.Enabled = false;
}

How to Add a New Button to Titlebar

When using the Kettic Form control, we can easily add a new button to the title bar via adding the new elements to the Form title bar element hierarchy. The C# code below shows the steps of adding a button element before the minimize button in the form title bar element.

void Form1_Load(object sender, EventArgs e)
{
KetticButtonElement buttonElement = new KetticButtonElement();
buttonElement.Text = "Button";
this.FormElement.TitleBar.Child[2].Child[0].Child.Insert(0, buttonElement);
}

How to Access Form Borders

There are two border primitives, FormBorderPrimitive and FormImageBorderPrimitive, in the Kettic Form control and they are used to control the customization of the visual appearance of the whole border.

How to Access Form Border Primitive

In the Kettic Form control, we use the property, FormBorderPrimitive, to stand for the outer thin borders of the Form control. To change the color of the primitive, we can use the simple C# code below.

this.FormElement.Border.ForeColor = System.Drawing.Color.Red;

How to Access Form Image Border Primitive

In the Kettic Form control, we use the property, FormImageBorderPrimitive, to stand for the inner thick border. Normally, the inner thick border begins from the bottom left corner of the title bar, then surrounds the Kettic Form control, and ends at the bottom right corner of the title bar. With the FormImageBorderPrimitive property, developers have the ability to customize the borders with better appearance for the form they are developing. To change the back color of the form image border primitive, we can use the simple C# code below.

this.FormElement.ImageBorder.BackColor = Color.Lime;
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls