首页 > 解决方案 > 程序未正确关闭 c# 和表单问题

问题描述

这是我关闭程序时遇到的错误

然后我关闭程序它没有完全关闭并且它仍然在后台活动我如何修复它?

再加上转换形式,例如:

this.Hide(); Form2 main = new Form2(); main.Show();

然后返回它再次显示检查更新消息框

WebClient webClient = new WebClient();
        if (!webClient.DownloadString("https://pastebin.com/raw/n77ayreS").Contains("1.6"))
        {
            if (MessageBox.Show("Looks like there is an available update, would you like to download it?", "Check For Updates", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                System.Diagnostics.Process.Start("https://github.com/TomerGamerTV/Unreal-Cracking-Pack/releases");
            }
            else
            {

            }
        }
        else
        {
            MessageBox.Show("You are on the latest version!", "Check For Updates");
        }

这是我第一次在这里问如果我做错了什么对不起

标签: c#winforms

解决方案


Environment.Exit(0)已修复程序 thx Paul Sütterlin


推荐阅读