By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,649 Members | 2,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,649 IT Pros & Developers. It's quick & easy.

User control question

P: n/a
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
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
user control tutorial here

http://www.dotnetjunkies.com/quickst...bpagelets.aspx
----------------------------------------------------------------------------
We’re living in the 21st century, in the atomic age,
and we’re still confused about evolution. Unbelievable
Nov 19 '05 #2

P: n/a
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.

"TCORDON" <tc******@hotmail.com> wrote in message
news:Ol**************@tk2msftngp13.phx.gbl...
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

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.