Winform界面适应不同分辨率
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using System
阅读全文
c#如何为pictureBox控件写单击事件
摘要://在构造pictureBox控件的代码区(Form1.Desingner.cs)写入this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);//双击窗体设计器进入代码区写入private void pict
阅读全文
winform如何获取记事本内容显示在listBox控件中
摘要://Application.StartupPath为获取当前exe文件所在位置的根目录 //“写入记事本文件的名字” StreamReader sr = new StreamReader(Application.StartupPath + "\\Logs\\报警记录.txt"); while (sr
阅读全文
winform如何单击X按钮弹出对话框
摘要:在form窗体“属性”里打开“事件”找到“FormClosing”并双击打开“FormClosing”的代码区写入以下代码: private void Form1_FormClosing_1(object sender, FormClosingEventArgs e){if (MessageBox.
阅读全文
win10系统如何使用自带的备份功能
摘要:1、打开桌面左下角win,选择设置 2、选择更新和安全项 3、打开“备份”,再打开“转到“备份和还原”” 4、打开“创建系统映像” 5、“在硬盘上”选择你要保存到的路径,点击下一步自导完成即可
阅读全文