单击关闭按钮时最小化整个应用程序 [英] Minimizing the whole application when the close button is click
问题描述
我有一个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();
}
推荐答案
这是一个对话框吗?
似乎无法实现虽然..
你可以多发布一下你的代码..
Is it a dialog form..
Is doesn''t seem to be possible though..
can you post your code a bit more..
好的就是它正在做的事情。
你想要它做什么?
Ok that is what it is doing.
What do you want it to do?
@Samishii23
我只是想单击关闭按钮时关闭表单。最近我遇到了这个问题,这真令人讨厌。当我单击关闭按钮时,表单正在关闭,另一个表单最小化。我希望另一种形式保持开放。
@Samishii23
I just want to close the form when i click the close button. It''s just annoying that recently I experiencing that problem. When I click the close button, the form is closing and the other form minimizes. I want the other form to stay open.
这篇关于单击关闭按钮时最小化整个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!