The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
The calendar is a DateTimePickerADV.MonthCalendarForDateTimePickerAdv
Has something changed that you are no longer able to make this cast and if so is there some equivalent syntax that can accomplish using the WantTabKey properity? Also this error only happens with I open the form in designer mode
MAMahendran Syncfusion Team February 25, 2011 07:11 AM UTC
Hi Samantha ,
Thanks for your interest in Syncfusion Products.
To avoid this casting error you have to remove the below code from FormDesigner code and have to use in Form Load event. This is because the value of Controls[0] is cannot be recognized in designer mode. This works fine after initialization is done. The following code explains the same.
Code snippet [C #] private void Form1_Load(object sender, EventArgs e) { if ((Syncfusion.Windows.Forms.Grid.GridControl)this.monthCalendarAdv1.Controls[0] is GridControl ) ((Syncfusion.Windows.Forms.Grid.GridControl)this.monthCalendarAdv1.Controls[0]).WantTabKey = false; }