ImageVerifierCode 换一换
格式:DOCX , 页数:6 ,大小:15.03KB ,
资源ID:2233860      下载积分:1 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-2233860.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(c#几种常用代码及c#与access数据库连接应用.docx)为本站会员(b****1)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

c#几种常用代码及c#与access数据库连接应用.docx

1、c#几种常用代码及c#与access数据库连接应用C# 字符串应用using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1 class Program static void Main(string args) Console.WriteLine(输入一个字符串); string s = Console.ReadLine(); string s1; /* s1 = s.Substring(2, 2); s1 = s.Remove(

2、2, 3); s1 = s.Insert(3, 123); s1 = s.Replace(abcd, ABCD); char s2 = s.ToCharArray(2,3 ); for (int i = 0; i s.Length; i+) Console.WriteLine(s2i); int i = 98765; s1 = i.ToString(); s1 = s.ToUpper(); string s3 = s.Split(q); Console.WriteLine(s30); Console.WriteLine(s31); */ Console.WriteLine(s1); C#用户登

3、陆界面using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.OleDb;namespace 联系 public partial class Form1 : Form public Form1() InitializeComponent(); private void

4、 Form1_Load(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e) string s = Provider=Microsoft.Jet.OLEDB.4.0;Data Source=密码.mdb; OleDbConnection conn = new OleDbConnection(s); string sql = select* from mima where id= + textBox1.Text + and mi= + textBox2.Text + ; OleDbDa

5、taAdapter oda = new OleDbDataAdapter(sql, conn); DataSet ds = new DataSet(); oda.Fill(ds, tablet1); if (ds.Tables0.Rows.Count = 1) MessageBox.Show(登录成功!); else MessageBox.Show(登录失败, abcdefg,MessageBoxButtons.YesNo,MessageBoxIcon.Question); private void button1_Click() C#与ACCESS 数据库连接应用using System;u

6、sing System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.OleDb;namespace T3 public partial class Form1 : Form public Form1() InitializeComponent(); private void button1_Click(ob

7、ject sender, EventArgs e) string s = Provider=Microsoft.Jet.OLEDB.4.0;Data Source=123.mdb; OleDbConnection conn = new OleDbConnection(s); /- string Sql = select * from Student; OleDbDataAdapter oda = new OleDbDataAdapter(Sql, conn); /- DataSet ds = new DataSet(); oda.Fill(ds, t1); /- dataGridView1.D

8、ataSource = ds.Tablest1; private void button2_Click(object sender, EventArgs e) string s = Provider=Microsoft.Jet.OLEDB.4.0;Data Source=123.mdb; OleDbConnection conn = new OleDbConnection(s); /- string Sql = select * from Student where ID=+textBox1 .Text+; OleDbDataAdapter oda = new OleDbDataAdapter

9、(Sql, conn); /- DataSet ds = new DataSet(); oda.Fill(ds, t1); /- dataGridView1.DataSource = ds.Tablest1; private void button3_Click(object sender, EventArgs e) sjb sjb1 = new sjb(); string sql = select * from Student where Sex= + textBox2.Text + ; dataGridView1.DataSource = sjb1.getsjb(sql); private

10、 void button4_Click(object sender, EventArgs e) sjb sjb2 = new sjb(); string sql = delete from Student where ID= + textBox3.Text + ; dataGridView1.DataSource = sjb2.getsjb(sql); private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) private void Form1_Load(object sender, EventArgs e)

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2