You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I''m loading a form as a treeview menu on the left of a panel and some other forms as documents to fill the panel. I need now to load also another treeview menu but it can also go below the other one. Ho can I align the secon treeview form next to the other?
Thanks a lot.
String Root = Application.StartupPath + @"\TreviewMenu001.exe";
Assembly newDll = Assembly.LoadFile(Root);
Type type = newDll.GetType("Menu.FirstMenu");
Object obj = Activator.CreateInstance(type) as IEventInterface;
Form frm1 = (Form)Activator.CreateInstance(type);
var childForm = frm1 as IEventInterface;
childForm.Send_Message += new EventHandler<MyEventArgs>(Get_Event);
frm1.TopLevel = false;
dockContent1 = new DockContent();
frm1.TopLevel = false;
frm1.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
frm1.Dock = DockStyle.Fill;
frm1.Visible = true;
dockContent1.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockLeftAutoHide;
dockContent1.Text = frm1.Text;
dockContent1.Controls.Add(frm1);
dockContent1.AllowEndUserDocking = false;
dockContent1.Show(dockPanel1, WeifenLuo.WinFormsUI.Docking.DockState.DockLeft);
The text was updated successfully, but these errors were encountered:
Hi I''m loading a form as a treeview menu on the left of a panel and some other forms as documents to fill the panel. I need now to load also another treeview menu but it can also go below the other one. Ho can I align the secon treeview form next to the other?
Thanks a lot.
The text was updated successfully, but these errors were encountered: