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