Event is captured in project but not when referenced
-
I have a project with a number of classes from which I've created a dll. Within this project is a usercontrol object. When I reference the dll created from the project I can't handle any events that I've created myself. I can handle the leave event for example. I presume that the event is being raised because if I try and handle it using code inside the initial project containing the usercontrol the evtn is raised and handled. The usercontrol is defined as friend and withevents and all the events are public that I want to handle. The events are passed through three objects. For example, usercontrol1 has a child object1 and object1 has a child object2. usercontrol-->object1-->object2 The initial event is raised in object2, handled by object1 which raises its own event, this is handled by usercontrol which then raises its own event and it is this final event, triggered by the first event, that I want to handle. I seem to figure it will be something to do how I idnetify things (public/private/protected/friend) as it works inside and not outside the project. I just don't know where. Any help would be gratefully appreciated. An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass. -- modified at 18:43 Tuesday 20th December, 2005 I've found the solution at: http://www.vbip.com/books/1861004915/chapter\_4915\_09.asp
-
I have a project with a number of classes from which I've created a dll. Within this project is a usercontrol object. When I reference the dll created from the project I can't handle any events that I've created myself. I can handle the leave event for example. I presume that the event is being raised because if I try and handle it using code inside the initial project containing the usercontrol the evtn is raised and handled. The usercontrol is defined as friend and withevents and all the events are public that I want to handle. The events are passed through three objects. For example, usercontrol1 has a child object1 and object1 has a child object2. usercontrol-->object1-->object2 The initial event is raised in object2, handled by object1 which raises its own event, this is handled by usercontrol which then raises its own event and it is this final event, triggered by the first event, that I want to handle. I seem to figure it will be something to do how I idnetify things (public/private/protected/friend) as it works inside and not outside the project. I just don't know where. Any help would be gratefully appreciated. An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass. -- modified at 18:43 Tuesday 20th December, 2005 I've found the solution at: http://www.vbip.com/books/1861004915/chapter\_4915\_09.asp
I've found the solution at: http://www.vbip.com/books/1861004915/chapter\_4915\_09.asp An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass.