I have created a copuple of user controls for my web app, but when I add any
one of the to a web form I cannot reference it without mannualy adding:
"Protected Withevents MyControl as MyUserControl" Is there any way to have
the control add this line by itself when it is dropped into a web form?
Thanks
Jon Paal - 28 Oct 2005 18:06 GMT
user control tutorial here
http://www.dotnetjunkies.com/quickstart/aspplus/doc/webpagelets.aspx
----------------------------------------------------------------------------
We’re living in the 21st century, in the atomic age,
and we’re still confused about evolution. Unbelievable
Kevin Spencer - 28 Oct 2005 21:51 GMT
Assuming you're using VS.Net, you can drag and drop it from the Solution
Explorer into the Design view of the page.

Signature
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
A watched clock never boils.
>I have created a copuple of user controls for my web app, but when I add
>any one of the to a web form I cannot reference it without mannualy adding:
>"Protected Withevents MyControl as MyUserControl" Is there any way to have
>the control add this line by itself when it is dropped into a web form?
>
> Thanks