This is a really bad behavior of the design time, but I am not sure if it can be avoided in some way. Basically: I created a custom LicenseProvider that checks the context for the UsageMode (DesignTime or Runtime). Depending on that it uses a design time algorithm or a runtime one to get the license. However, if you select a control and then use copy + paste (either by keyboard or context menu) the pasted control has the context set to Runtime... This is really bad... Here's how to replicate: create a user control and a LicenseProvider. In the license provider's GetLicense method put a message box to display the context.UsageMode. Add the control to the toolbar, drag and drop it on the design surface. Then select it and press Ctrl+c and then Ctrl+v. You will see that the second control will show "Runtime"... Unfortunately I didn't find a way yet to go around this... Perhaps someone has an idea
thanks
iulia