Click here to Skip to main content
15,886,199 members

Comments by TeoMan (Top 2 by date)

TeoMan 23-May-22 4:34am View    
I had the same error (Designer error reporting stack starting with System.ComponentModel.ReflectPropertyDescriptor.SetValue) and it is issued because I have a 64bit-only library that is used inside the custom control.
I solved using the "DesignMode" variable in the following way:

Original code:

private void uc_Resize(object sender, EventArgs e)
{
do something...
...
...
do something else with 64bit library types or functions
...
...
}

Solution:
private void uc_Resize(object sender, EventArgs e)
{
do something...
...
...
if (DesignMode)
return;
UpdateInnerSizes();
}

private void UpdateInnerSizes()
{
do something else with 64bit library types or functions
...
...
}

Only the "DesignerMode" return didnt solve the issue because it seams the designer tries to compile the single function and fails with 64bit library
TeoMan 14-Dec-12 10:17am View    
Reason for my vote of 5 \n Very usefull