hoe can access runtime's form user'controls

M

Mian Mahboob

hi

At Runtime i add a Form in designing time panel Control. on that form i add
couple of user controls.

i want to comuncated each of usercontrol's on my Form which is execute on
Runtime
mean's i want to call diffrant Event's of each user control

all work is on Windows' C# 2003

replay me ([email protected])
 
N

Nicholas Paldino [.NET/C# MVP]

Mian,

Are you looking to attach event handlers to the controls you are adding
to the form, or are you looking to fire the events? If you are looking to
attach event handlers, you simply have to do it like you would any other
events that are fired from a class.

However, if you are looking to fire the events on the controls, you
can't do that. You can only fire events from within the control itself (or
rather, the class they are declared in).

Hope this helps.
 

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

Top