Designer ctor not working

  • Thread starter Thread starter Mario Vázquez
  • Start date Start date
M

Mario Vázquez

Hi all,

I'm implementing a designer for a usercontrol and it seems that it's not
attached if I use the construtor Designer(type, type) of the attribute. I
must use the overloaded ctor Designer(type) in order to make the things
work.
I don't know if this can be the cause (not being able to tell VS the base
class for the designer) but when I rebuild, the components of the assembly
in which I'm working dissapear from the Form. Closing and reopening the form
solve this, but I keep troubled.
Any ideas?

Thanks for attention,
Mario Vazquez
 
Hello Mario,
I'm implementing a designer for a usercontrol and it seems that it's not
attached if I use the construtor Designer(type, type) of the attribute. I
must use the overloaded ctor Designer(type) in order to make the things
work.
I don't know if this can be the cause (not being able to tell VS the base
class for the designer) but when I rebuild, the components of the assembly
in which I'm working dissapear from the Form. Closing and reopening the
form solve this, but I keep troubled.
Any ideas?

Are you sure you're using the "correct" combination of designer type and
designer base class type? I think it's possible that VS is basically not
instantiating your designer because you are passing in two types that
don't fit the contract of that particular ctor overload. If you want,
please post some more information about the types you are trying to use in
the ctor call.


Oliver Sturm
 
Back
Top