This project is read-only.

A form control is a UserControl not visible to COM. It is hosted inside of a System.Windows.Forms.Form on its own thread. It is aware of the SolidWorks application instance just like all other external controls.

using System;

using SwAddinHelpers.Base;
using SwAddinHelpers.Contracts;
using SwAddinHelpers.Attributes;
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.ComponentModel.Design;
using System.ComponentModel.Composition.Hosting;
using System.Reflection;

namespace ExternalControls
    public class ExternalFormControlTemplate1: UserControlBase, IExternalUserControl
        public const string PROGID = "SwExternalControls.ExternalFormControlTemplate1";

        public ExternalFormControlTemplate1()

        public dynamic ExternalUserControl
            get { return this; }

External Model View Tab Control
External Feature View Tab Control
External Property Page Control
External Task Pane Control

Last edited Jul 8, 2010 at 7:38 PM by fixitchris, version 3


No comments yet.