需要在bat脚本里面弹出取消/确认框提示,可以用下面的案例: 示例: @echo off setlocal enabledelayedexpansion set Vbscript=Msgbox("你的系统即将崩溃,是否立即更新?",1,"系统管理员提醒") for /f "Delims=" %%a in ('MsHta VBScript:Execute("CreateObject(""Scripting.Filesy
①弹出信息框后慢慢下降消失 在主窗体中新增按钮重命名为btnShowAndDisappearMessages,在click事件中写如下代码: private void btnShowAndDisappearMessages_Click(object sender, EventArgs e) { Messages ms = new Messages();//要弹出的消息框 Point p = new Point(Screen.PrimaryScreen.Workin