代码之家  ›  专栏  ›  技术社区  ›  JDMX

有人知道实现ISelectionService和/或IComponentChangeService的类吗

  •  0
  • JDMX  · 技术社区  · 15 年前

    创造我自己的习惯 ParentControlDesigner ,我的 public override void Initialize( IComponent component )

      ISelectionService service = (ISelectionService)this.GetService( typeof( ISelectionService ) );
      if ( service != null )
        service.SelectionChanged += new EventHandler( this.OnSelectionChanged );
    
      IComponentChangeService service2 = (IComponentChangeService)this.GetService( typeof( IComponentChangeService ) );
      if ( service2 != null )
        service2.ComponentChanged += new ComponentChangedEventHandler( this.OnComponentChanged );
    

    ISelectionService IComponentChangeService . 我想看看他们是如何建立和可能引用。用谷歌搜索 ,我得到了一个与定义或 Initialization 实现,但没有指向实际实现的类的链接 .

    1 回复  |  直到 15 年前
        1
  •  1
  •   Nick    15 年前

    下面是两篇关于如何在自己的应用程序中托管visualstudio窗体设计器的好文章。这些可以给你所需要的信息。