- 博客(8)
- 收藏
- 关注
转载 Winform实现打印功能
在窗体中添加一个按钮,PrintDialog控件,printDocument控件,为printDocument控件添加事件private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { //打印内容 为 局...
2019-04-15 10:06:00
2739
转载 如何给WinForm的dataGridView控件的表格中添加按钮并添加点击事件
/// <summary> /// 为dataGridView添加“启动”“停止”两个按钮 /// </summary> private void AddBtndgv2() { DataGridViewButtonColumn btn = new DataGridViewButtonCo...
2019-04-15 09:53:00
1914
转载 winform如何打开电脑自带小软件
//打开电脑自带计算器软件 private void button3_Click(object sender, EventArgs e) { System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo(); In...
2019-04-01 12:20:00
179
转载 Winform界面适应不同分辨率
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using System.Drawing;namespace ZhaotongTest{ class A...
2019-02-21 12:55:00
278
转载 c#如何为pictureBox控件写单击事件
//在构造pictureBox控件的代码区(Form1.Desingner.cs)写入this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);//双击窗体设计器进入代码区写入private void pictureBox1_Click(object sender, EventArgs e){...
2019-02-20 17:46:00
2236
转载 winform如何获取记事本内容显示在listBox控件中
//Application.StartupPath为获取当前exe文件所在位置的根目录//“写入记事本文件的名字”StreamReader sr = new StreamReader(Application.StartupPath + "\\Logs\\报警记录.txt"); while (sr.Peek() != -1) { ...
2019-02-18 21:42:00
363
转载 winform如何单击X按钮弹出对话框
在form窗体“属性”里打开“事件”找到“FormClosing”并双击打开“FormClosing”的代码区写入以下代码:private void Form1_FormClosing_1(object sender, FormClosingEventArgs e){if (MessageBox.Show("是否关闭窗体", "确认", MessageBoxButtons.OKC...
2019-02-18 21:36:00
302
转载 win10系统如何使用自带的备份功能
1、打开桌面左下角win,选择设置2、选择更新和安全项3、打开“备份”,再打开“转到“备份和还原””4、打开“创建系统映像”5、“在硬盘上”选择你要保存到的路径,点击下一步自导完成即可转载于:https://www.cnblogs.com/z55w/p/10387897.html...
2019-02-16 15:23:00
399
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人