Groups | Blog | Home
all groups > dotnet windows forms designtime > january 2007 >

dotnet windows forms designtime : Designer ctor not working


Mario Vázquez
1/18/2007 5:48:55 PM
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
1/27/2007 4:18:07 PM
Hello Mario,

[quoted text, click to view]

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
--
AddThis Social Bookmark Button