private void Form1_Load(object sender, EventArgs e)
{
CalendarGcCharMaskCellType gcCharMaskCell1 = new CalendarGcCharMaskCellType();
//Allow the GcCharMaskCell to accept upper case alphabet(A-Z).
gcCharMaskCell1.Format = "A";
gcCharMaskCell1.CharBoxes.Clear();
//Add some CharBoxes to GcCharMaskCell.
gcCharMaskCell1.CharBoxes.AddRange(new InputBox[] { new InputBox(), new InputBox(), new InputBox() });
CalendarTemplate template1 = CalendarTemplate.CreateDefaultTemplate();
template1.Content[1, 0].CellType = gcCharMaskCell1;
template1.Content[2, 0].CellType = gcCharMaskCell1.Clone();
gcCalendarGrid1.Template = template1;
}
Private Sub Form1_Load(sender As Object, e As EventArgs)
Dim gcCharMaskCell1 As New CalendarGcCharMaskCellType()
'Allow the GcCharMaskCell to accept upper case alphabet(A-Z).
gcCharMaskCell1.Format = "A"
gcCharMaskCell1.CharBoxes.Clear()
'Add some CharBoxes to GcCharMaskCell.
gcCharMaskCell1.CharBoxes.AddRange(New InputBox() {New InputBox(), New InputBox(), New InputBox()})
Dim template1 As CalendarTemplate = CalendarTemplate.CreateDefaultTemplate()
template1.Content(1, 0).CellType = gcCharMaskCell1
template1.Content(2, 0).CellType = gcCharMaskCell1.Clone()
gcCalendarGrid1.Template = template1
End Sub