自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 资源 (1)
  • 收藏
  • 关注

原创 vs2015 c#datagridview表将列名添加到comboBox1控件中

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using System.Linq;using System.Text;usi

2017-10-28 08:39:42 1730

原创 sql2014存储过程用VS2015调用存储过程保存数据

SQL2014 先新建存储过程private void button1_Click(object sender, EventArgs e) { String constr = "server=;database=;Persist Security Info=True;User ID=;Password="; ...

2019-04-23 14:26:31 303

原创 VS2015-dataGridView13底部增加合计行的例子

private void Form2_Load(object sender, EventArgs e) { conn = new SqlConnection("Server = ''; database = ''; User ID = ''; Password ='';Min Pool Size=0;Max Pool Size= 30000;Pooli...

2019-04-23 14:17:05 751

原创 点击datagridview任何单元格赋值别一个窗体Textbox中

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using System.Linq;using System.Text;using Sy...

2019-04-23 14:15:03 344

原创 点击datagridview任何单元格赋值别一个窗体Textbox中

Form1窗体using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using System.Linq;using System.Text;...

2019-04-23 14:14:28 182

原创 datagridview1表一列作为別一个datagridview2表查询条件,单击datagridview1单元格显示datagridview2表数据

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using System.Linq;using System.Text;using Syste...

2019-04-23 14:14:10 618

原创 C# VS2015一个ComboBOX(下拉框)绑定数据库(SQL)某一列

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using System.Linq;using System.Text;usi

2017-11-04 16:19:58 11268 1

原创 c#vs2015 一个文本框多字段模糊查询datagridview表数据

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using System.Linq;using System.Text;u

2017-11-02 16:14:38 4008

原创 TreeView点击树节点中id,名称赋值到文本框中

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using System.Linq;using System.Text;u

2017-11-01 16:27:56 4141

原创 FORM2副窗体表中单元格值赋值FORM1主窗体,只出现一个唯一FORM1主窗体

FORM1主窗体,TEXTBOX文本框属性要公开才能访问,赋值是订单编号一列using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.

2017-11-01 09:11:57 339

原创 datagridview1表一列作为別一个datagridview2表查询条件,单击datagridview1单元格显示datagridview2表数据

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using System.Linq;using System.Text;u

2017-10-31 17:03:34 550 1

原创 点击datagridview任何单元格赋值别一个窗体Textbox中

Form1窗体datagridview属性中selectionMode选择FullRowSelectusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using Sy

2017-10-29 11:37:33 2436 2

原创 vs2015 c#通过ComboBox选择查询类别并在TextBox输入条件进行查询

tusing Sytem;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using System.Linq;using System.Text;u

2017-10-28 08:29:50 7207

原创 C#WINDOW VS2015 c#TreeView 之后点击树中的任何一个节点,触发事件问题

  private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)        {            if (e.Node.Text.Trim() == "销售部门")   //如果当前节点的文本为“系统退出”            {               

2017-10-17 14:10:54 7136

原创 C#Window VS2015,Treeview动态绑定树节点绑定sql

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using

2017-10-16 19:01:16 1334 1

原创 如何实现点击Winform程序窗体中的一个按钮,执行这个exe文件?

           using System.Diagnostics;  private void button2_Click(object sender, EventArgs e)        {            Process.Start(@"c:\\Program Files (x86)\\Stimulsoft Reports.Net 2016.1 Tria

2017-10-10 08:26:44 1799

原创 c#window visual studio2015下拉列表显示sqlserver所有数据库的名字

SqlConnection Connection = new SqlConnection(String.Format("Data Source=192.168.2.15;Initial             Catalog=master;User ID=sa;PWD=sa123"));            string str = "select name from

2017-10-09 15:13:10 829

SavePath.rar

以修改日期为条件,以当天遍历文件进行指定目录文件对比是否复制文件 定时遍历文件,指定目录文件与源目录文件进行遍历

2020-09-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除