无法拦截标志性形式 [英] Can not intercept iconic form
本文介绍了无法拦截标志性形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我选择表单右上角的小十字形框图标时
我可以使用OnClosing
拦截程序
如果选择右上角的标志性小框,该如何截获该程序?
我已经使用了以下
When I select the small cross box icon on the top right of the form
I can intercept my program using OnClosing
How can I intercept the program if I select the iconic small box on the top right?
I have used the following
protected override void OnDockChanged(EventArgs e)
{
MessageBox.Show("Hellow iconic form ");
//Form1.WindowState = FormWindowState.Minimized;
}
推荐答案
我认为您无法拦截和取消该操作.您可以检测到大小已更改.如果您不希望它们最小化,只需删除按钮即可.
I don''t think you can intercept and cancel that action. You can detect the size changed. If you don''t want them to be able to minimise, just remove the button.
这篇关于无法拦截标志性形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文