' Wrapper for Invoke method that does not throw an exception after the object has been ' disposed while the calling method was running in a background thread Private Sub SafeInvoke(ByVal method As [Delegate], ByVal args() As Object) Try If Not IsDisposed Then Invoke(method, args) Catch x As ObjectDisposedException End Try End SubThis works as is. If I move this code into another project, IsDisposed and Invoke are highlighted stating that they are not declared. Both projects contains the three references to the component that needs this. So, I am trying to understand why it works on one and not on the other one.