01 2022 档案
摘要:1.提示 string dateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); this.richTextBox1.Invoke(new Action(() => richTextBox1.Text = String.Format(dateT
阅读全文
摘要:1.图片转为byte[] //获取图片 public static void findImage() { Image image = Image.FromFile("D:\\test1.jpg");//获取该路劲下的图片test1.jpg ImageToBytes(image);//调用ImageT
阅读全文
摘要:1.启动播放窗口 private void metroButtonVideoPlayer_Click(object sender, EventArgs e) { //videoPlayerForm chartForm = new videoPlayerForm(plots, repository1)
阅读全文
摘要:1.获取路径"D:\\文件夹1\\文件夹2\\文件夹3"var path = this.tree.SelectedNode.Name;2.按\\分割成数组var pathSplit = path.Split('\\');pathSplit[0] = "D:";pathSplit[1] = "文件夹1
阅读全文
摘要:简介Windows窗体的基本属性一、布局属性1、StartPosition属性2、Location属性3、尺寸属性4、WindowsState属性5、Autoscroll属性6、AutoSize属性二、样式属性1、ControlBox属性2、MaximizeBox属性3、MinimizeBox属性4
阅读全文
摘要:1.什么是大端和小端 Big-Endian和Little-Endian的定义如下: 1) Little-Endian就是低位字节排放在内存的低地址端,高位字节排放在内存的高地址端。 2) Big-Endian就是高位字节排放在内存的低地址端,低位字节排放在内存的高地址端。 举一个例子,比如数字0x1
阅读全文
摘要:1. //form1 //静态传值 public static string Chuanzhi; string Chuanzhi = textbox.text; //form2 string ChuanXZhi = form1.chuanzhi; 2. form1 public string Chu
阅读全文
摘要:1.得到程序根目录 Application.StartupPath 2.相对路径 this.pictureBox1.Image=Image.FromFile(Application.StartupPath "\\1.gif"); 3.绝对路径 this.pictureBox1.Image=Image
阅读全文
摘要:FileStream读取数据 //FileStream读取数据 FileStream fsRead = new FileStream(@"D:\123.txt", FileMode.OpenOrCreate, FileAccess.Read);//路径;打开或创建;读 byte[] buffer =
阅读全文

浙公网安备 33010602011771号