如何创建授权的控件

相关code fragment如下
class CustomLicenseContext : LicenseContext

 public class LicensedComponent : Component
{
  public LicensedComponent()
  {
     ValidateLicense();
  }
  // Validate license checks if its at run time and sets the LicenseContext if it is. 
  // If it is at design time, it uses the defualt context.
  void ValidateLicense()
{
}
}

相关链接http://windowsforms.net/downloads/gdn/ComponentWithVersionCustomContext.zip

posted on 2004-03-23 09:43  muddle  阅读(464)  评论(0)    收藏  举报

导航