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,
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.
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 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.