c#共12篇
C#开发Android应用程序的流程-BP大马随笔

C#开发Android应用程序的流程

手把手教你用C#开发Android应用程序的方法和流程摘要:用C#能开发RFID-android吗?C#真的能开发android程序吗?C#开发android程序的工具是什么?开发步骤、方法以及流程是怎样的?出学android开...
bpdama的头像-BP大马随笔bpdama2年前
01569
C#---数据库访问通用类、Access数据库操作类、mysql类-BP大马随笔

C#—数据库访问通用类、Access数据库操作类、mysql类

//C# 数据库访问通用类 (ADO.NET) using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.SqlClient; using System.Configuration; names...
bpdama的头像-BP大马随笔bpdama2年前
06910
c# sql 数据库 多表关联 根据一个表的字段 读取另一个表的内容-BP大马随笔

c# sql 数据库 多表关联 根据一个表的字段 读取另一个表的内容

数据库中有3个表,分别是:1. Person字段为: ID;NAME;JOBID;CLASSID              1    李明&nb...
bpdama的头像-BP大马随笔bpdama2年前
07510
c# file类 文件删除、创建、重名、复制设置文件属性-BP大马随笔

c# file类 文件删除、创建、重名、复制设置文件属性

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace ConAppFile { class Program { //file类,文件删除、创建、重名、复制设...
bpdama的头像-BP大马随笔bpdama2年前
0776
C# winform中OpenFileDialog的运用还可以多选-BP大马随笔

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...
bpdama的头像-BP大马随笔bpdama2年前
0559
c# winform 删除datagridview中的checkbox选定的行-BP大马随笔

c# winform 删除datagridview中的checkbox选定的行

private void indexBtnDelete_Click(object sender, EventArgs e)        {            string strNames = '您选择的是:';    &...
bpdama的头像-BP大马随笔bpdama2年前
07510
c# 将datagridview某一列设定为不可编辑或可编辑-BP大马随笔

c# 将datagridview某一列设定为不可编辑或可编辑

this.indexDataGridView1.Columns[1].ReadOnly = true; this.indexDataGridView1.Columns[2].ReadOnly = true; this.indexDataGridView1.Columns[3].ReadOnly = true; this.indexDataGridView1....
bpdama的头像-BP大马随笔bpdama2年前
0618
c# 代码更改dataset某单元的内容以及绑定数据到combobox中,并且写入数组-BP大马随笔

c# 代码更改dataset某单元的内容以及绑定数据到combobox中,并且写入数组

private string connstr = 'Provider = Microsoft.Jet.OLEDB.4.0; Data Source = aaa.mdb'; public DataSet getlist(string str, string tableName)        {   ...
bpdama的头像-BP大马随笔bpdama2年前
010110
c# 判断dataset 或data table是否为空-BP大马随笔

c# 判断dataset 或data table是否为空

if(ds != null && ds.Tables.Count>=0 && ds.Tables[0].Rows.Count>0) { ds.Table[0].Row[0]['name'];  }  判断DataSet是否为空//*****************...
bpdama的头像-BP大马随笔bpdama2年前
07315
c# 子类继承父类-BP大马随笔

c# 子类继承父类

要注意些问题, 要习惯在建立类的时候,将默认的构造函数先建立一个,如果默认的构造函数没有建立,比如在父类中建立了一个带参构造函数,那么子类中的构造函数就会出错. 另外,子类的构造函数,总是先...
bpdama的头像-BP大马随笔bpdama2年前
07013