I finally found the answer. This is not as obvious as I thought it would be.
Instead of looking for DesignTime or RunTime attributes, you need to see if a debugger is connected.
Drop it in the constructor (with the appropriate attributes in your class) and you're off and running!
if (System.Diagnostics.Debugger.IsAttached) { License L = LicenseManager.Validate(typeof(MyControl), this); }
code>
I hope this helps someone else with the same problem!
- Jerry
Jerry
source share