StrataFrame Forum

Subclass Ingerited UI

http://forum.strataframe.net/Topic10411.aspx

By Chan - 7/18/2007

Hi,

I have problem to drop my subclassed SF inherited UI control to form. The control dropped is just dissapear. It is just a simple inheritance.



using System.ComponentModel;



namespace JK.Framework.UI.Windows.Forms.DevEx

{

[Designer(typeof(System.Windows.Forms.Design.ControlDesigner))]

public partial class TextEdit : MicroFour.StrataFrame.UI.Windows.Forms.DevEx.TextEdit

{

public TextEdit()

{

InitializeComponent();

}



public TextEdit(IContainer container)

{

container.Add(this);



InitializeComponent();

}

}

}





Any ideas?
By Trent L. Taylor - 7/18/2007

If your assembly is stored in the GAC (c:\windows\assembly) folder and you rebuild your project, you will have to get out of Visual Studio and come back in before the control can be dropped on a form, even though it may show up in the toolbox.  The reason is that the as that the assembly in which the control you are creating is already loaded into the AppDomain and does not get reloaded properly when the assembly is in the GAC until you get out and come back in.  That is the first thing that comes to mind.