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,
Thank you very much for your clarification.
I have been researching ways to do this and unfortunately it seems that this is directly handled by Visual Studio and there isn’t a way to tell the UserControl to automatically add the Infragistics references. Only the UserControl assembly reference is added which internally references the dlls which are needed for our controls inside it. When you add the UserControl to some form in another project you will need to manually add the Infragistics references that you need.
This is Hanpyo Choi, a co-worker with Ms. Min in Integvision co, ltd.
It seems that you misunderstood the point of the question, because of English problem. :(
The main point of the question was that -
when I put a Infragistics control such as UltraGrid on a WinForm, refereneces for UltraGrid (e.g. Infragisitcs4.Win.UltraWinGrid.v13.2) are attached on the Solution Explorer AUTOMATICALLY, but it does NOT happen when I try to use my own user control that inherits from UltraGrid.
That means even though I put my own user control on a WinForm, the references (e.g. Infragisitcs4.Win.UltraWinGrid.v13.2) does not appear automatically, and I have to do it manually.Is there any way to set up the references automatically when I just put my user control?
Actually, I have another question also, which might be relevant to the upper problem, I guess.Whenever I put my own user control, it appears on the form successfully, but the 'licenses.licx' file does not appear automatically.It creates the file(licenses.licx) when I try the genuine Infragistics controls, but it doesn't when I try my own user control that inherits from Infragistics controls.Is there any way to create the licenses.licx file automatically when I just use my own control that inherits from Infragistics controls?
I'll be waiting for your kind answer :)Thank you.
Hanpyo Choi
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
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.
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