- 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/03/18 周三 19:00-20:00
童得力,华为云开发者生态运营总监/姚圣伟,华为云HCDE开发者专家
本次直播由华为专家带你实战应用开发,看华为云码道(CodeArts)代码智能体如何在AI时代让你的创意应用快速落地。更有华为云HCDE开发者专家带你用码道玩转JiuwenClaw,让小艺成为你的AI助理。
回顾中 -
Skill 构建 × 智能创作:基于华为云码道的 AI 内容生产提效方案2026/03/25 周三 19:00-20:00
余伟,华为云软件研发工程师/万邵业(万少),华为云HCDE开发者专家
本次直播带来两大实战:华为云码道 Skill-Creator 手把手搭建专属知识库 Skill;如何用码道提效 OpenClaw 小说文本,打造从大纲到成稿的 AI 原创小说全链路。技术干货 + OPC创作思路,一次讲透!
回顾中 -
码道新技能,AI 新生产力——从自动视频生成到开源项目解析2026/04/08 周三 19:00-21:00
童得力-华为云开发者生态运营总监/何文强-无人机企业AI提效负责人
本次华为云码道 Skill 实战活动,聚焦两大 AI 开发场景:通过实战教学,带你打造 AI 编程自动生成视频 Skill,并实现对 GitHub 热门开源项目的智能知识抽取,手把手掌握 Skill 开发全流程,用 AI 提升研发效率与内容生产力。
回顾中
热门标签