Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Inherited Infragistic Control References Do Not Load Automatically from Toolbox Drag and Drop
posted

I modified an Infragistic Control in VB.Net and have added it to my toolbox.  When I drop it on a form, it does not load the references and throws errors in VS 2010. What do I need to hook up possibly to make this happen?

Parents
  • 2165
    Verified Answer
    posted

    Hello Vic,

    It’s entirely up to Visual Studio to detect the references that are required and we have no control over this process. Visual Studio just gets the references that are directly referenced by the class and load them, but not the dependencies of those references. A way to work around it is to reference types that exist in the other assemblies.

    I am sending you a simple control created by me which you could add to the toolbox. Please see attached zip and notice how types that exist in the other assemblies are referenced in order to be loaded.

    public partial class UserControl1 : UltraButton

        {

            private Infragistics.Win.UIElement pointlessUIElement;

            private Infragistics.Shared.DisposableObject pointlessDisposableObject;

     

            public UserControl1()

            {

                InitializeComponent();

            }

     

            private void ultraButton1_Click(object sender, EventArgs e)

            {

                MessageBox.Show("I'am a control");

            }

        }

    MyUltraButtonControl.zip
Reply Children