public static void CreateTemplateComponent(Type type)
 {
     if (TemplateView == null)
     {
         TemplateView = CurrentManager.GetNewHost(typeof(ABCControls.ABCView), LoaderType.CodeDomDesignerLoader);
         TemplateView.HostSurface.IsTemplate = true;
     }
     try
     {
         Component comp = (Component)TemplateView.DesignerHost.CreateComponent(type);
         if (comp is Control)
         {
             ((Control)comp).Parent = (ABCControls.ABCView)TemplateView.DesignerHost.RootComponent;
         }
     }
     catch (Exception ex)
     {
     }
 }