Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic loading document #169

Closed
SkydivingAngel opened this issue Nov 23, 2013 · 1 comment
Closed

Dynamic loading document #169

SkydivingAngel opened this issue Nov 23, 2013 · 1 comment
Labels

Comments

@SkydivingAngel
Copy link

Hi everybody here's my question,
I'm able to load a dll form

Assembly newDll = Assembly.LoadFile(Application.StartupPath + @"\001.dll");
Type type = newDll.GetType("001.form_001");
object obj = Activator.CreateInstance(type);
Form frm1 = obj as Form;
but I can't show like usual:
frm1.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.Document; //WON'T WORK
frm1.BackColor = Color.SteelBlue;
frm1.Show(dockPanel1);

How can I do that?
Thanks in advance.

@roken
Copy link
Member

roken commented Nov 24, 2013

frm1 is of type Form but ShowHint doesn't exist there, it is defined on DockContent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants