Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
MDI Parent set Border Size : None.
When i click Minimizebutton minimize(MDI Parent) with in Taskbar.


Thanks & Regards
Rajesh V
Posted

 
Share this answer
 
When you remove the border, you also get rid of the title bar and max/min buttons - you probably know that already. So, if you add a minimize button then use this code:
C#
private const int SW_SHOWNORMAL = 1;
private const int SW_SHOWMINIMIZED = 2;
private const int SW_SHOWMAXIMIZED = 3;

[DllImport("user32.dll")]
private static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);
private void butMinimize_Click(object sender, EventArgs e)
    {
    ShowWindowAsync(Handle, SW_SHOWMINIMIZED);
    }
 
Share this answer
 

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