Whenever I try opening one of my forms in VS 2005 I get this error message,
Invalid cast from 'System.Boolean' to 'Infragistics.Win.DefaultableBoolean'
I have tried re-building the project but it doesn't help. I cannot find anywhere in the code where I am casting anything to the DefaultableBoolean type. This project was handed over to me incomplete and I have been tasked with completing it. I am pretty sure the form uses a UltraWinGrid control.
I found the problem. There were 6 out of almost 30 forms that had this problem. When I compared them almost line by line I found that the 6 forms that had this error had this line in the initialize code:
Me.grid.UseOsThemes = False
But the ones that worked had this one,
Me.grid.UseOsThemes = Infragistics.Win.DefaultableBoolean.[False]
I have no idea how the six forms had the different value but after changing them the forms are accessible in the designer now.
Thanks
It probably doesn't matter, now, but just FYI...
The UseOsThemes property is a new property that was added in... I think v7.2. This property replaced the old SupportThemes property. The old property was a boolean and the new one is a DefaultableBoolean. So perhaps someone did a find/replace to update from the old to the new and changed the property name without changing the value.