I had same problem and methods were not public... HTH, Fred
Le 20/09/12 13:54, Robin Lauryssen-Mitchell a écrit : > Just a random thought - are your methods marked Public? > > Regards > Robin > > On 20/09/2012 13:31, Julia Truchsess wrote: >> OK, I've achieved the desired functionality by means of >> Introspection.MethodInfo.Invoke, but surely there's an easier/more elegant >> way? >> >> julia >> >> From: Julia Truchsess >> <[email protected]<mailto:[email protected]>> >> Date: Thursday, September 20, 2012 6:57 PM >> >> I've made a subclass of an MBS object (WinUSBNotificationMBS) and added some >> public methods to it, but I am unable to call these methods from outside the >> class. Autocomplete in the IDE doesn't work and compilation results in a >> "This method does not exist" error. I've tried casting, for example, my >> subclass is called "MyWinUSBNotification" and my added method is called >> "Update": >> >> WinUSBNotification(MyWinUSBNotification).Update >> >> and I've tried making a class interface; nothing seems to work. I'm pretty >> sure I've been able to do this with other, non-MBS classes – is there >> something about these MBS classes that prevents methods added to subclasses >> from being called from outside the class? >> >> julia >> > _______________________________________________ > Mbsplugins_monkeybreadsoftware.info mailing list > [email protected] > https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
