>I hate it.. realy hate.. make a references take more time then programming :(((
>
>Assembly1. Application has LicenseManager
>Assembly2. LicenseManager has 3 forms based on BaseForms.
>Assembly3. BaseForms.. in the global loading event has code
>
>MyApplication.LicenseManager.ValidateLicense(Me.formclsid)
>
>and now I have a problem! Its cycle reference!
>and compile process fail..
>
>Then appears a question.
>How to write global code which will check a license when form starting If I can't make references!
>Need idea..
You will probably have to do this via interfaces.
I.E. create an interface in a common assembly that specifies the methods and properties that a class must expose and mark the class as implementing the interface. You can then reference the class instance via the interface. But it's not possible to judge from the information you give where best to do this......
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only