Discussion:
Designer ctor not working
(too old to reply)
Mario Vázquez
2007-01-18 16:48:55 UTC
Permalink
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
Oliver Sturm
2007-01-27 16:18:07 UTC
Permalink
Hello Mario,
Post by Mario Vázquez
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
--
http://www.sturmnet.org/blog
Loading...