摘要: private void Form1_Paint(object sender, PaintEventArgs e) { for (int i = 0; i < 360; i++)//循环一圈 { if (i % 10 == 0)//设置角度 { double y = Math.Sin(i / 360 阅读全文
posted @ 2022-06-06 13:59 sbwynnss 阅读(131) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { Graphics gr = CreateGraphics(); Image bmp = new Bitmap(1024,800); Bitmap png = new Bitmap(@"D 阅读全文
posted @ 2022-06-05 20:30 sbwynnss 阅读(666) 评论(0) 推荐(0) 编辑
摘要: //先添加Form1_Paint事件 private void Form1_Paint(object sender, PaintEventArgs e) { int x, y; x = y = 100;//偏移值; Graphics gr = e.Graphics; Pen p1 = new Pen 阅读全文
posted @ 2022-06-05 11:00 sbwynnss 阅读(332) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { //Form窗口画线条图形 //Graphics gp = e.Graphics;//创建GDI对象 Graphics gp = CreateGraphics();////创建GDI对象 阅读全文
posted @ 2022-06-04 21:49 sbwynnss 阅读(77) 评论(0) 推荐(0) 编辑
摘要: //Graphics gp = e.Graphics;//创建GDI对象,Paint事件中。 Graphics gp = this.CreateGraphics();////创建GDI对象方法2 Pen p1 = new Pen(Color.Blue, 5);//钢笔线条5镑蓝色 Rectangle 阅读全文
posted @ 2022-06-04 20:31 sbwynnss 阅读(161) 评论(0) 推荐(0) 编辑
摘要: using System.IO; namespace 文件复制 { class Program { static void Main(string[] args) { //方法1 //File.Copy(@"F:\重温新中国建国珍贵画面(中央档案管).mp4", @"D:\123.mp4",true 阅读全文
posted @ 2022-06-04 11:05 sbwynnss 阅读(1539) 评论(0) 推荐(0) 编辑
摘要: fileSystemWatcher1.EnableRaisingEvents = false;//是否启动监控 fileSystemWatcher1.Path = @"D:\"; fileSystemWatcher1.Filter = "*.*";//监控的文件类型 fileSystemWatche 阅读全文
posted @ 2022-06-03 21:07 sbwynnss 阅读(84) 评论(0) 推荐(0) 编辑
摘要: using System.IO; namespace FoldBowserdialog控件 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Cli 阅读全文
posted @ 2022-06-03 20:07 sbwynnss 阅读(68) 评论(0) 推荐(0) 编辑
摘要: using System.IO;//必须添加命名空间。 窗口加载时要执行的内容: saveFileDialog1.InitialDirectory = "D\\123.txt";//初始化文件保存的起始位置 saveFileDialog1.Filter = "a56爆大奖在线娱乐文件(*.txt)|*.txt|Wo 阅读全文
posted @ 2022-06-03 11:04 sbwynnss 阅读(443) 评论(0) 推荐(0) 编辑
摘要: using System.IO; namespace 读一行TXT内容 { class Program { static void Main(string[] args) { string path = @"D:\123\123.txt"; string conTent; ; FileStream 阅读全文
posted @ 2022-06-02 20:36 sbwynnss 阅读(45) 评论(0) 推荐(0) 编辑