Hi Support
I have added a C1DateEdit to a form with the following settings
this.dteDateDue.Calendar.DayNameLength = 1;
this.dteDateDue.Calendar.VisualStyle = C1.Win.C1Input.VisualStyle.System;
this.dteDateDue.DisplayFormat.FormatType = C1.Win.C1Input.FormatTypeEnum.ShortDate;
this.dteDateDue.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(((((C1.Win.C1Input.FormatInfoInheritFlags.CustomFormat | C1.Win.C1Input.FormatInfoInheritFlags.NullText)
| C1.Win.C1Input.FormatInfoInheritFlags.EmptyAsNull)
| C1.Win.C1Input.FormatInfoInheritFlags.TrimStart)
| C1.Win.C1Input.FormatInfoInheritFlags.TrimEnd)));
this.dteDateDue.Location = new System.Drawing.Point(79, 43);
this.dteDateDue.Name = "dteDateDue";
this.dteDateDue.Size = new System.Drawing.Size(170, 20);
this.dteDateDue.TabIndex = 18;
this.dteDateDue.Tag = null;
this.dteDateDue.VisibleButtons = C1.Win.C1Input.DropDownControlButtonFlags.DropDown;
I then assign data to it using the following code:
dteDateDue.DataBindings.Add("Text", bs_TaskAdmin, "Due_Date", false);
If i then set the Enabled to False at design time this line casues a error "A first chance exception of type 'System.Exception’ occurred in System.Windows.Forms.dll"
Set it to True and its ok. I also have other controls Dropdown, textboxes all C1 and this sequence is fine. Is this an error with this control?
Kind Regards
Scott