Sam_Sorrow
Newcomer
- Joined
- Dec 11, 2003
- Messages
- 4
I have a previously selfcreated user-control which contains a
picturebox and some additional code, also included is a method
that changes the displayed Image in the Picturebox on Clicking.
This works fine so far.
Now I place this user control on a new form and i want it to fire a
Click-Event on my form when a user clicks it. The Image in the
Pictuebox changes on clicking but the Eventhandler on my form
doesnt fire anything on clicking! I need a possibility for the users
of my user control to write their own code for a click-event on
that control.
I read about the possibility to bubble events from a user control
to its parent control but it was related to web forms. Is it
equivalent to Windows forms? If it is, how does it
work because i dont get to the point yet...
Thanks in advance for your help,
Jan
picturebox and some additional code, also included is a method
that changes the displayed Image in the Picturebox on Clicking.
This works fine so far.
Now I place this user control on a new form and i want it to fire a
Click-Event on my form when a user clicks it. The Image in the
Pictuebox changes on clicking but the Eventhandler on my form
doesnt fire anything on clicking! I need a possibility for the users
of my user control to write their own code for a click-event on
that control.
I read about the possibility to bubble events from a user control
to its parent control but it was related to web forms. Is it
equivalent to Windows forms? If it is, how does it
work because i dont get to the point yet...
Thanks in advance for your help,
Jan