- 1、文件: File.Create(path) File.Copy(sourceFile,destFile,true); File.Move(sourceFile,targetFile) File.Exists(fileName) File.Delete(fileName) Fil... 1、文件: File.Create(path) File.Copy(sourceFile,destFile,true); File.Move(sourceFile,targetFile) File.Exists(fileName) File.Delete(fileName) Fil...
- using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace MoveDerictoryTest { &nb... using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace MoveDerictoryTest { &nb...
- 控件:能显示的 组件:不能显示的 ErrorProvider控件主要属性; DataSource ContainerControl Icon,自定义错误图标 主要方法: SetError,指定错误信息字符串和错误图标出现的位置 控件:能显示的 组件:不能显示的 ErrorProvider控件主要属性; DataSource ContainerControl Icon,自定义错误图标 主要方法: SetError,指定错误信息字符串和错误图标出现的位置
- string dir = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); MessageBox.Show("桌面的路径是"+dir); string dir = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); MessageBox.Show("桌面的路径是"+dir);
- using System.IO; 1、写入文本 File.WriteAllLines(@"d:\test.txt",lines); File.WriteAllText(@"d:\text.txt",text); using (StreamWriter writer =... using System.IO; 1、写入文本 File.WriteAllLines(@"d:\test.txt",lines); File.WriteAllText(@"d:\text.txt",text); using (StreamWriter writer =...
- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; ... using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; ...
- using System; using System.Windows.Forms; namespace DataGridViewContextMenuStrip { public partial class Form1 : ... using System; using System.Windows.Forms; namespace DataGridViewContextMenuStrip { public partial class Form1 : ...
- using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace 面向对象7._13_Mp3完善{ class Program { static void Main(string[] ... using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace 面向对象7._13_Mp3完善{ class Program { static void Main(string[] ...
- 使用系统API函数,需要使用命名空间:System.Runtime.InteropServices; 1、if(textbox1.text=="") 2、if(textbox1.text==string.empty) 3、if(string.isnullorempty(textbox1.text)) 使用系统API函数,需要使用命名空间:System.Runtime.InteropServices; 1、if(textbox1.text=="") 2、if(textbox1.text==string.empty) 3、if(string.isnullorempty(textbox1.text))
- TreeView控件显示结点层次结构 CkeckBox属性设置为True则可以选择; TreeView的集合Nodes是TreeNode对象 TreeNode tn = new TreeNode(); //添加结点: if (textBox1.Text.Trim() == "")... TreeView控件显示结点层次结构 CkeckBox属性设置为True则可以选择; TreeView的集合Nodes是TreeNode对象 TreeNode tn = new TreeNode(); //添加结点: if (textBox1.Text.Trim() == "")...
- 使用TcpClient和TcpListener类进行的实例, 此实例的关键在于TCP协议; 使用了多线程避免界面卡死,委托实现在线程中对主线程的元素修改。 界面截图如下: 源码下载地址: https://github.com/mo... 使用TcpClient和TcpListener类进行的实例, 此实例的关键在于TCP协议; 使用了多线程避免界面卡死,委托实现在线程中对主线程的元素修改。 界面截图如下: 源码下载地址: https://github.com/mo...
- 订阅事件的方法的命名,通常为“On事件名” C#中通常一个属性对应一个类型成员 事件访问器(Event Accessor) 通过Delegate基类的GetInvocationList()静态方法,可以获得这个委托链表 Thread.Sleep(TimeSpan.FromSeconds(3)); // 模拟... 订阅事件的方法的命名,通常为“On事件名” C#中通常一个属性对应一个类型成员 事件访问器(Event Accessor) 通过Delegate基类的GetInvocationList()静态方法,可以获得这个委托链表 Thread.Sleep(TimeSpan.FromSeconds(3)); // 模拟...
- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using Sy... using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using Sy...
- using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace StreamWriterTest {  ... using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace StreamWriterTest {  ...
- using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace IOTest { cla... using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace IOTest { cla...
上滑加载中
推荐直播
-
AI编码实干派,“码”力全开2026/02/26 周四 15:00-16:30
谈宗玮/于邦旭/丁俊卿/陈云亮/王一男
【中国,深圳,2026年2月26日】,以“AI编码实干派,码力全开”为主题的华为云码道(CodeArts)代码智能体新春发布会在线上成功召开。华为云码道公测版正式发布,为开发者和企业提供具备工程化能力的智能编码解决方案。
回顾中 -
华为云码道-玩转OpenClaw,在线养虾2026/03/11 周三 19:00-21:00
刘昱,华为云高级工程师/谈心,华为云技术专家/李海仑,上海圭卓智能科技有限公司CEO
OpenClaw 火爆开发者圈,华为云码道最新推出 Skill ——开发者只需输入一句口令,即可部署一个功能完整的「小龙虾」智能体。直播带你玩转华为云码道,玩转OpenClaw
回顾中 -
华为云码道-AI时代应用开发利器2026/03/18 周三 19:00-20:00
童得力,华为云开发者生态运营总监/姚圣伟,华为云HCDE开发者专家
本次直播由华为专家带你实战应用开发,看华为云码道(CodeArts)代码智能体如何在AI时代让你的创意应用快速落地。更有华为云HCDE开发者专家带你用码道玩转JiuwenClaw,让小艺成为你的AI助理。
回顾中
热门标签