User control question

  • Thread starter Thread starter TCORDON
  • Start date Start date
T

TCORDON

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
 
Assuming you're using VS.Net, you can drag and drop it from the Solution
Explorer into the Design view of the page.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top