繁体   English   中英

程序未正确关闭 c# 和 forms 问题

[英]Program not closing correctly c# and problems with forms

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

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

然后再切换 forms 例如:

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");
        }

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM