/// ///////////////////////////////////////////
        public override object EditValue(System.ComponentModel.ITypeDescriptorContext context,
                                         System.IServiceProvider provider,
                                         object value)
        {
            Type tp = CFormSelectTypeDotNet.SelectType(provider);

            if (tp != null)
            {
                return(tp.ToString());
            }
            return("");
        }
        //-----------------------------------------
        public static Type SelectType(IServiceProvider provider)
        {
            CFormSelectTypeDotNet form = new CFormSelectTypeDotNet();

            form.m_provider = provider;
            Type tp = null;

            if (form.ShowDialog() == DialogResult.OK)
            {
                tp = form.m_type;
            }
            form.Dispose();
            return(tp);
        }