J
Johnny J.
I wanted to exchange all the ComboBoxes in my project with a special
MyComboBox inherited from the Regular combobox but with a little extra code.
Because I didn't want to remove all the normal comboboxes and drag and drop
MyComboBoxes, I did a find and replace in my entire solution which consists
of 13 projects and a lot of different forms and replaced
"System.Windows.Forms.ComboBox" with "UserControls.MyComboBox" (or whatever
my combobox is called...) everywhere, including the designer files of
course.
That went ok up to 99%. Most of my forms showed that the standard comboboxes
were now indeed MyComboBox'es.
But ONE form out of them all refuse to show in the designer. I get the
cryptic pink errormessage with a lot of errors basically saying that som
error occured when trying to deserialize the form.
If I RUN the program, however, the form shows nicely and all the comboboxes
are MyComboBox'es (as they should be).
Now how can I get the designtime designer to show the form again. Is there
any way of "re-serializing" it or?
OF COURSE it was the most important form of them all!!! We do have source
control, but if I revert the changes, I'll back to zero. And all the other
changes work fine... just this one form.
Cheers,
Johnny "Clutz" J.
MyComboBox inherited from the Regular combobox but with a little extra code.
Because I didn't want to remove all the normal comboboxes and drag and drop
MyComboBoxes, I did a find and replace in my entire solution which consists
of 13 projects and a lot of different forms and replaced
"System.Windows.Forms.ComboBox" with "UserControls.MyComboBox" (or whatever
my combobox is called...) everywhere, including the designer files of
course.
That went ok up to 99%. Most of my forms showed that the standard comboboxes
were now indeed MyComboBox'es.
But ONE form out of them all refuse to show in the designer. I get the
cryptic pink errormessage with a lot of errors basically saying that som
error occured when trying to deserialize the form.
If I RUN the program, however, the form shows nicely and all the comboboxes
are MyComboBox'es (as they should be).
Now how can I get the designtime designer to show the form again. Is there
any way of "re-serializing" it or?
OF COURSE it was the most important form of them all!!! We do have source
control, but if I revert the changes, I'll back to zero. And all the other
changes work fine... just this one form.
Cheers,
Johnny "Clutz" J.