Hi
on the user control you need to declare a public event and raise it with
raiseevent youreventname, you raise the event on the usercontrol when
something hapens on the usercontrol that you want the form to be aware of.
if you've declared an event and placed the raiseevent where you need it in
the usercontrol. You can catch it in the code of your form containing the
control by going to the code editor and than in the left combo where you
select all your controls, select your control. Next in the right combo you
will be able to select your event you declared.
Hth Peter
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.
"snesbit" <
[email protected]> schreef in bericht
If a screen is made up of several user controls and those user controls
contain various packaged or standard controls such as a grid, how do you
raise both standard and custom events from the user control so the form
containing the user control can see the events you want them to see.
Help Please....