Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have custom windows form that has no border.I apply that custom form on child form. And I have custom MDIParent Form that has also no border. So, My problem is when I maximise child form then top border of is appear out side of MDIForm so how can manage or solve this issue using c#.See my snapshot for more detail of my problem I want to remove border with maximise button from top of the custom MDIForm.

What I have tried:

I tried many solution available on stack overflow and many other web site.
Posted
Updated 14-Sep-16 8:11am
Comments
Member 12578086 14-Sep-16 3:17am    
Snapshot Link : https://social.msdn.microsoft.com/Forums/en-US/7260f798-2b61-4cec-a3c1-d7cec75825d4/how-can-manage-border-less-child-form-with-border-less-mdi-form-in-c?forum=vbgeneral

1 solution

Hi Member,

Not really a solution just some hacky but maybe acceptable workarrounds can be found here c# - Removing the default MDI menu of a MDI Container form when a MDI Child is maximized - Stack Overflow[^]

But you maybe allready have seen this "Solutions"...

I just wanted to share my experience with applications like yours (borderless forms with custom/simulated system menu):
After Messing arround with MDIContainer and Forms I decided to implement my own logic - It's not that difficult if you just want to "simulate" normal window behavior - think about it - just some simple positioning logic. The Sub-forms where UserControls just layered on top of each other (in normal Z-Order) on the main-form. And I left all the hassles with MDI behind me...

Kind regards
Johannes
 
Share this answer
 
v2

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