I create MyFormManager Usercontrol.
=>
Public Class MyFormManager Inherits Infragistics.Win.UltraWinForm.UltraFormManager
End Class
runtime... An error flies when you doubleclick on the icon.
Hello Min,
Thank you for posting in our forums.
You need to add a contstructor to your MyFormsManager class which accepts IContainer parameter and calls MyBase.New overload which accepts IContainer:
Public Sub New(container As IContainer)
MyBase.New(container)
End Sub
Then you may need to delete and re-add your MyFormsManager instances in order for the designer to start using this overload.
I have attached a sample demonstrating this suggestion.
Please let me know if you have any additional questions.
Thank you..
one more question..This dll is not added automatically when I add a usercontrol that I made reference to another project.
Hello,
You have added your custom component, which inherits the UltraFromsManager to a user control and you want to use this user control in another project? You need to go to your toolbox and then use the “Chose Items…” option. Then navigate to the dll with your custom UltraFormsManager and add it. Then you will be able to add the component to your forms and the dll reference will be added.
I mean add my usercontrol dll I created in other projects.
so I can see the usercontrol in toolbox.and then I add the usercontrol on the form. but it doesn't automatically add Infragistics dll.(Infragistics4.Shared.v13.2, Infragistics4.Win.Misc.v13.2...Infragistics4.Win.v13.2...)
I want to be automatically reference infragistics dll
Then another option is to add the UserControl project to your solution and then reference the UserControl project in the project that you will use it. Then you can add the UserControl to your forms and you won’t need to worry about the references.