Hi,
My control is almost finished but its still doing weird things at design
time.
I've a designer on my control. My control contains a collection of
subcontrols. When I add a child to the collection of my control, I can
see it (as I invoke the paint method) but it is not selectable from the
designer. I need to close the form and reopen it.
I assumed that it came from the Initialize not being done a second time,
but I have no clues on how to relaunch it.
Therefore I would love to be able to debug my code at design time. Is
that at all possible ?
Thanks,
Nick
Maqsood Ahmed - 06 May 2005 10:54 GMT
Hello,
try using base.SetStyles(ControlStyles.Selectable,true) in the
constructor.
I hope it'll help.
Cheers
Maqsood Ahmed [MCP,C#]
Kolachi Advanced Technologies
http://www.kolachi.net
Nick WAELTI - 06 May 2005 12:20 GMT
That's already the case, any other items are selectable. Just if I
create new ones... I can't select them.
> Hello,
> try using base.SetStyles(ControlStyles.Selectable,true) in the
[quoted text clipped - 8 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
joeycalisay - 06 May 2005 11:07 GMT
> Therefore I would love to be able to debug my code at design time. Is
> that at all possible ?
yes, two instance of devenv.exe, the control project on the first attach it
to the other with the form using it.
i also have some tips on my blog, link below...

Signature
Joey Calisay
http://spaces.msn.com/members/joeycalisay/
Nick WAELTI - 06 May 2005 12:24 GMT
Great,
Thanks Joey :)
>>Therefore I would love to be able to debug my code at design time. Is
>>that at all possible ?
>
> yes, two instance of devenv.exe, the control project on the first attach it
> to the other with the form using it.
> i also have some tips on my blog, link below...