Xceed Grid for WinForms v4.3 Documentation
CustomControls Sample Application (Editor Controls)
Welcome to Xceed Grid for WinForms v4.3 > Sample applications > CustomControls Sample Application (Editor Controls)

Programming languages

VB.NET, C#

Overview

This sample explorer allows you to browse through various custom editors and view the code that was required to create them.

These samples demonstrate how to:

Custom Calendar

  • Derive from the WinCalendar class 

  • Override the DefaultShowPreviewDays property to prevent, by default, preview days from being displayed in the calendar months. 

  • Override the OnPaintDayBackground method to paint an image in the background of specific days. 

  • Override the OnPaintDay method to (optionally) paint the text of the day.

Custom DatePicker

Optional TextBox

Option Picker

PictureViewer - ISupportIntegralResizing Interface Implementation

Scrolling TextBox

Spin Edit

Customized WinComboBox DropDown Control

How to use

Select a sample to view in the list box on the left-hand side. The sample will be created and can be viewed in the "Sample" tab on the right-hand side. The sample's code can be viewed (but not edited) in the "Code" tab. Whenever a sample is selected, a short description will appear in the text box.

Project location & filename

C#: Xceed Samples\Xceed Editors for WinForms v#.#\CSharp\CustomControls\CustomControls.csproj

VB.NET: Xceed Samples\Xceed Editors for WinForms v#.#\Visual Basic .NET\CustomControls\CustomControls.vbproj