摘要:
DSO Framer Control Object 实现加载word文件的不可编辑 axFramerControl1.Open(OldPath); this.axFramerControl1.set_EnableFileCommand(DSOFramer.dsoFileCommandType... 阅读全文
摘要:
将图片转换成二进制插入数据库 FileStream fs = new FileStream("D:\\Add.ico",FileMode.Open); byte[] imagebytes = new byte[fs.Length]; BinaryReader br = new BinaryRe... 阅读全文
摘要:
C#MessageBox用法: DialogResult dr = MessageBox.Show("是否删除?", "提示", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Information); if (dr == DialogResul... 阅读全文
摘要:
private int ExistOrNot(string name) //判断当前数据表是否存在 { con = new SqlConnection(s); DataSet ds = new DataSet(); string strSQL = "select name from syso... 阅读全文
摘要:
//CurrentCommunication为解决方案的名字,dynamic为图片的名字pictureBox1.Image = CurrentCommunication.Properties.Resources.dynamic; 阅读全文
摘要:
基本信息设置 progressBar1.Maximum = 1000; //设置ProgressBar的最大值 progressBar1.Value = 0; //ProgressBar的初始值 progressBar1.Step = 5; //ProgressBar的增长度 for (i... 阅读全文
摘要:
c#创建数据库表: private void CreatTable(string name) //创建数据库源数据表,name为表名 { con.ConnectionString = s; con.Open(); string sql = "CREATE TABLE " + name + "(Lin... 阅读全文
摘要:
连接数据库操作: string s = "Data Source=服务器名称;Initial Catalog=数据库名称;Integrated Security=True"; //连接数据库所需要的字符串 SqlConnection con = new SqlConnection(); c... 阅读全文