![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#学习笔记
文章平均质量分 61
兴龙庄
在当今发达的科技时代,学习高级语言是非常必要的
展开
-
C# 操作XML
dddddddconsole原创 2019-03-12 16:50:12 · 2914 阅读 · 0 评论 -
C# 向ListView中添加多列数据的方法
private void button1_Click_1(object sender, EventArgs e) { 方法1(交错数组,简单说是数组的数组) string[][] xxx = new string[10][]; xxx[0] = new string[] { "1", "2", "3" ,"4"};原创 2016-01-19 10:40:47 · 26982 阅读 · 2 评论 -
C# 以当前日期自动创建文件
先创建好文件夹如在E盘中创建一个文件夹“2016年”,在“2016年”这个文件夹下再创建“4月”,在“4月”这个文件夹下再创建一个文件夹“8日” string year = DateTime.Now.Year.ToString() + "年"; string month = DateTime.Now.Month.ToString() + "月"; string day = DateTime.N原创 2016-04-08 07:58:26 · 3087 阅读 · 0 评论 -
C# Datagridview 控件总结
添加列标题dgv.Columns[0].HeaderText = " 编号";dgv.Columns[1].HeaderText = " 日期";dgv.Columns[2].HeaderText = " 时间";dgv.Columns[3].HeaderText = " 标题";设定列宽dgv原创 2018-04-18 08:10:31 · 968 阅读 · 1 评论 -
C# 进制转换
//================== 进制之间的转换 ================== using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Demo{ class Program { static void Mai...原创 2019-03-12 16:48:50 · 1670 阅读 · 0 评论 -
C# 窗体随机加载背景图片
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace Demo...原创 2019-03-12 16:49:01 · 1425 阅读 · 1 评论 -
C# 主画面开发 - 窗口停靠
首先新建3个窗体:FrmMaim:主画面 FrmTool :工具箱 FrmDB:数据库主窗体的操作(1)把 IsMdiContainer 属性设定成 :true(2)右击 - 引用 - using WeifenLuo.WinFormsUI.Docking;(3)引用命名空间:using WeifenLuo.WinFormsUI.Docking;(4)添加一个 dockPa...原创 2019-03-12 16:50:00 · 4009 阅读 · 0 评论