- 博客(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 1753
原创 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 314
原创 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 764
原创 点击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 362
原创 点击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 194
原创 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 636
原创 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 11318 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 4042
原创 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 4159
原创 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 354
原创 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 565 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 2450 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 7233
原创 C#WINDOW VS2015 c#TreeView 之后点击树中的任何一个节点,触发事件问题
private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Node.Text.Trim() == "销售部门") //如果当前节点的文本为“系统退出” {
2017-10-17 14:10:54 7154
原创 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 1349 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 1825
原创 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 841
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人