排序
2013开发服务器端和客户端程序的开发环境搭配C# .NET
通过一段时间的学习,工作,对于C#开发人员来说,2013年比较好的开发环境搭配为: 开发客户端软件:VS2010 C# + .NET 2.0 + 桌面数据库 开发服务器端程序:VS2010 C# + .NET 4.0 + MSSQL2005 大...
c# 的4种访问修饰符
c# 的4种访问修饰符: private私有的,只在本类中允许访问不能被继承 protected只在本类中允许访问可以被继承 internal可以在本项目中访问可以被继承 public可以在本项目外访问可以被继承
c# 子类继承父类
要注意些问题, 要习惯在建立类的时候,将默认的构造函数先建立一个,如果默认的构造函数没有建立,比如在父类中建立了一个带参构造函数,那么子类中的构造函数就会出错. 另外,子类的构造函数,总是先...
c# 判断dataset 或data table是否为空
if(ds != null && ds.Tables.Count>=0 && ds.Tables[0].Rows.Count>0) { ds.Table[0].Row[0]['name']; } 判断DataSet是否为空//*****************...
c# 代码更改dataset某单元的内容以及绑定数据到combobox中,并且写入数组
private string connstr = 'Provider = Microsoft.Jet.OLEDB.4.0; Data Source = aaa.mdb'; public DataSet getlist(string str, string tableName) { ...
c# 将datagridview某一列设定为不可编辑或可编辑
this.indexDataGridView1.Columns[1].ReadOnly = true; this.indexDataGridView1.Columns[2].ReadOnly = true; this.indexDataGridView1.Columns[3].ReadOnly = true; this.indexDataGridView1....
c# winform 删除datagridview中的checkbox选定的行
private void indexBtnDelete_Click(object sender, EventArgs e) { string strNames = '您选择的是:'; &...
C# winform中OpenFileDialog的运用还可以多选
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Data.OleDb; using System.Runt...
c# file类 文件删除、创建、重名、复制设置文件属性
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace ConAppFile { class Program { //file类,文件删除、创建、重名、复制设...