I know it is not good practise to post to your own posts but I have found the solution and someone else may find this post usefull in the future.
Loading a library with a form is the same as loading a normal library. (This we all know)
Add the library as a refrence
Add the required
using <The library> to your code
Create the object
UserControl1 FormsObj = new UserControl1();And the important part is actually linking the form in the library to something in your form.
I prefer using a panel.
FormsObj.Parent = panel1;I hope this will help someone else.
Regards
Gerhard
MidNor wrote:
Hi there
I want to develop an application where I use DLL's to load separate modules that will each handle a different part of the application (Including the form).
I am migrating from Delphi where we used frames to handle this task, and is hoping that it will be possible to develop in this manner.
I can add a new project (library) to my solution containing the GTK# form. But could not locate any method of actually loading the library and linking it to the container in which it will aventually be displayed.
I will appreciate it if anyone can point me in the correct direction for getting this done in Mono Develop.
Regards
Gerhard