单击关闭按钮时最小化整个应用程序

单击关闭按钮时最小化整个应用程序

本文介绍了单击关闭按钮时最小化整个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows应用程序。我只是不明白为什么当我点击关闭按钮,而不是关闭表格时,它最小化整个应用程序。

我以前的运行中没有遇到这个。我现在正在体验它,这很奇怪。我还应该恢复整个应用程序以开始另一个交易。这很尴尬。

以下是我关闭按钮事件的代码。


private void btnClose_Click(object sender,EventArgs e)

{

this.Close();

}

I have a Windows Application. I just don''t understand why is it that when i click the Close button, instead of closing the form, it minimizes the whole application.
I don''t experience this on my previous runs. It''s weird that I am now experiencing it. It''s awkward also that I should restore the whole application to begin another transaction.

Below is my code on Close button event.

private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}

推荐答案




这篇关于单击关闭按钮时最小化整个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 13:05