-----box 程式----- 程式1 license = LicenseManager.Validate( typeof(MyFirstControl), this); -----end----- -----box 程式----- 程式2 [LicenseProviderAttribute( typeof(LicFileLicenseProvider) )] public class MyFirstControl : System.Windows.Forms.UserControl { … -----end----- -----box 程式----- 程式3 public override License GetLicense( LicenseContext context, Type type,object instance, bool allowExceptions ) { if( context.UsageMode == LicenseUsageMode.Designtime ) { return new MyFirstLicense(); }else{ return base.GetLicense( context, type, instance, allowExceptions ); } } -----end-----