如何最小化MDI父窗体(Windows应用程序) [英] How to minimize the MDI Parent Form (Windows Application)
本文介绍了如何最小化MDI父窗体(Windows应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
MDI父集的边框大小":无.
当我单击任务栏中的最小化按钮最小化(MDI父级)时.
谢谢&问候
Rajesh V
Hi
MDI Parent set Border Size : None.
When i click Minimizebutton minimize(MDI Parent) with in Taskbar.
Thanks & Regards
Rajesh V
推荐答案
请参阅: ^ ]
希望对您有帮助. :)
See : http://msdn.microsoft.com/en-us/library/system.windows.forms.form.windowstate.aspx[^]
I hope it will help you. :)
删除边框时,您还将摆脱标题栏和最大/最小按钮-您可能已经知道了.因此,如果添加最小化按钮,请使用以下代码:
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:
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);
}
这篇关于如何最小化MDI父窗体(Windows应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文