Groups | Blog | Home
all groups > vb.net controls > april 2005 >

vb.net controls : Raising events from constituent controls


snesbit
4/28/2005 8:46:17 AM
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.


durstin
5/4/2005 1:55:24 PM
If you want the events of the consituent controls available to the =
designer, you have to define wrapper events in the container control and =
stitch the events up by hand (i.e., in code). See =
http://winfx.msdn.microsoft.com/library/default.asp?url=3D/library/en-us/=
dv_fxmclicc/html/8242a3f4-25cb-4475-b7a8-9d8aec5c662b.asp. If you want =
the events available programmatically only, then you can make the =
constituent controls public--this is of course an all or nothing affair.

[quoted text, click to view]
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.


AddThis Social Bookmark Button