Separation of designers from the main assembly

Background

I am converting a TreeViewAdv project (TVA) on SourceForge on vb.net. So far, I have successfully converted the code, successfully built it, added the dll link to the new project, added the control to the toolbar, added the control to the form, and changed the properties of the controls. I also coded the functionality in the form prior to the creation, which adopted the Aga.Controls namespace.

Problem

When I turn to debugging the application in which I installed the TVA control, I get an error: "Aha" is not declared. It may not be available due to its level of protection. on all calls to this namespace. So, I researched this problem on SourceForge, and there is a topic here: https://sourceforge.net/p/treeviewadv/discussion/568369/thread/005e61ef/which discusses this issue. Presumably, someone found out what the problem is when you see such behavior, but could not share any details of your wisdom. A common problem is that when accessing a dll compiled in 2008 in a 2010 project, "this is what VS 2010 requires designers to be separated from the main assembly." I tried to get in touch with people there, but there seems to be no real activity on any topic on the forum. This leads me to my first question ...

Question (s)

1.) , - StackOverflow, treeviewadv? , , , /. , , , , , ""?

2.) , 1, -, , , TVA ?

2.) 1 2, -, , / ?

3.) 1, 2 3, , , , VS2008 ?

, , / , . - 1 2 ( / ), , , , , , , , SO. ( ) , , .

+4
2

-, , dll DLL / UI.

/ 'primary' class:

1.) / . , - (Ctrl + F) "UITypeEditor" . , , .

2.) / (). ( ).

3.) . (.. ), → → . " ". add → New Project... , .

4.) Class1 . "" , /. EDIT: , , . . ( , , / ). , "", "" ( - ).

5.) - , . , , , , . "" , , . , , - / . - , (dll), . , , , , .

6.) editor/designer, (dll) /.

7.) , BOTH dll ( ). , / , , .

8.) , . , , . , , . .

.. LONG , . , dll , , . , ( ), . , Visual Studio, . , DLL.

TreeViewAdv

1.) UIEditors. NodeControlsCollection.cs NodeControlCollectionEditor, .NET CollectionEditor. , . , ALL NodeControl ( NodeControl), , NodeControl , , - StringCollectionEditor StringCollectionEditor.cs. .NET CollectionEditor ( ).

2 - 4.) , .

5.) ( DLL Aga.Controls UIEditor ). , .

6 - 8.) ( aga) ( ). , , , . , .

, , Plutonix . . , , , ( , , ).

EDIT: , , , TVA #. DLL VB.net. TVA, VB.net, , . , , aga.

: ( , ) → → " ". ".NET Framework 4", . , , , .

0

, . : (?) , . , TreeView, , , "" . , , , , havent - .

, UnDo Manager (.. Component ). , , - , , UnDo. / :

Imports Plutonix.UIDesigners

Namespace Plutonix.UnDoMgr

Public Class UndoManager
    Inherits Component      
    Implements ISupportInitialize      

    Private _TgtControls As New Collection(Of Control)

    <EditorAttribute(GetType(UnDoControlCollectionUIEditor), _
          GetType(System.Drawing.Design.UITypeEditor))> _
    <DesignerSerializationVisibility(DesignerSerializationVisibility.Content)> _
    Public Property UnDoTargets() As Collection(Of Control)
        Get
            Return _TgtControls
        End Get
        Set(ByVal value As Collection(Of Control))
            If value IsNot Nothing Then
                _TgtControls = value
            Else
                _TgtControls.Clear()
            End If
        End Set
    End Property
    '...

<EditorAttribute... , UnDoControlCollectionUIEditor. , , , .

COntrols. , :

  <System.Security.Permissions.PermissionSetAttribute( _
        System.Security.Permissions.SecurityAction.Demand, Name:="FullTrust")> _
Public Class UnDoControlCollectionUIEditor
    Inherits ControlCollectionUIEditor

    Public Sub New()
        MyBase.bExcludeForm = True
        MyBase.bExcludeSelf = True

       ' create a list of supported control TYPES
        typeList.Add(GetType(TextBox))
        '... 9 more lines adding control types to List(of System.Type)
    End Sub
 End Class

ControlCollectionUIEditor, (DLL). , , , , ControlCollectionUIEditor, DLL. , , GroupBoxes .. / UnDo, - , , .

( String ..) NET, (//). UID, UIDesigner.DLL(.. ), .

, . , 2008 (DLL?) . ? , VS 2010, ? , , 2008 ( , ).

, 1 UIDesigner. TreeViewAdv.Properties.cs NodeControlCollectionEditor NodeControls. NodeControlsCollection.cs. , , UnDoManager: , CollectionEditor. NET CollectionEditor, CodeProject DialogForm. StringCollectionEditor.cs, , - .

, - , . , VS 2010 . , 2008 . - , ? , CS , msg - " ". , , ...?

, !

+1

All Articles