WinForm在窗体风格设置成None时无法最小化的问题。添加以下代码即可实现最小化:
class="code_img_closed" src="/Upload/Images/2013100511/0015B68B3C38AA5B.gif" alt="" />logs_code_hide('1f70aac1-6f51-40e9-bb9d-262be521657d',event)" src="/Upload/Images/2013100511/2B1B950FA3DF188F.gif" alt="" />protected override CreateParams CreateParams { get { const int WS_MINIMIZEBOX = 0x00020000; // Winuser.h中定义 CreateParams cp = base.CreateParams; cp.Style = cp.Style | WS_MINIMIZEBOX; // 允许最小化操作 return cp; } }View Code
原文地址:http://blog.sina.com.cn/s/blog_4982f49901013wlj.html