Click here to Skip to main content
15,348,570 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an application winform C#, in the parentForm (form named is frmMain) has menustrips, that poit to subForms (frmCustomer, frmGoods ...). But when open subForms from menu it swamp my menustrips. SO, i want limited location of subforms always under menustrips (under menu bar), include can't drag mouse to Pull subform over menustrips.

This is my application by winform C#:

- FORM frmMain: contain menustrip:  MenuItem/TooltripDropdownmenu(CusomerToolstripMenu, GoodsToolstripMenu....)

- when click CusomerToolstripMenu  in menustrip of frmMain form:

 private void CusomerToolStripMenuItem_Click(object sender, EventArgs e)
          frmCustomer Frm_Customer = new frmCustomer();

- when click GoodsToolstripMenu:

 private void GoodsToolStripMenuItem_Click(object sender, EventArgs e)
          frmGoods Frm_Goods = new frmGoods();

Please help me!

What I have tried:

I can't to find any solution. Can you help me
Updated 10-Mar-19 18:26pm
Dave Kreskowiak 10-Mar-19 23:00pm
Since you haven't described at all how you've implemented your application, which type of application you're building (WinForms, WPF, UWP), nor shown any code at all, it's pretty much impossible to tell you exactly what's going on.
Member 14174664 10-Mar-19 23:23pm
sir, i redescribed in the question, can you help me.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900