• 大小: 86KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-09
  • 语言: C#
  • 标签: C#编程  

资源简介

使用C#中的dataset与datagrid对数据库中的数据进行操作

资源截图

代码片段和文件信息

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;

namespace laobenlrb
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            button1.Enabled = false ;
        }

        private void button1_Click(object sender EventArgs e)
        {

            Form2 Inf = new Form2();
            Inf.Show();
           
        }

        private void textBox2_TextChanged(object sender EventArgs e)
        {

        }

        private void button2_Click(object sender EventArgs e)
        {
            string user ss;
            user = textBox1.Text;
            ss = textBox2.Text;
            if (user == “laobenlrb“ && ss == “19881212“)
                button1.Enabled = true;
            else
            {
                MessageBox.Show(“用户名或密码错误!“);
                textBox1.Text = “ “;
                textBox2.Text = “ “;
            }
        }

       
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1146  2010-06-10 13:20  laobenlrb\Backup\laobenlrb\Form1.cs

     文件       5962  2010-06-10 13:18  laobenlrb\Backup\laobenlrb\Form1.Designer.cs

     文件       6014  2010-06-10 13:18  laobenlrb\Backup\laobenlrb\Form1.resx

     文件      10294  2010-06-10 15:32  laobenlrb\Backup\laobenlrb\Form2.cs

     文件      18739  2010-06-10 12:46  laobenlrb\Backup\laobenlrb\Form2.Designer.cs

     文件       5814  2010-06-10 12:46  laobenlrb\Backup\laobenlrb\Form2.resx

     文件       4103  2010-06-09 23:41  laobenlrb\Backup\laobenlrb\laobenlrb.csproj

     文件        490  2010-06-08 00:18  laobenlrb\Backup\laobenlrb\Program.cs

     文件       1350  2010-06-08 00:18  laobenlrb\Backup\laobenlrb\Properties\AssemblyInfo.cs

     文件       2868  2010-06-08 00:18  laobenlrb\Backup\laobenlrb\Properties\Resources.Designer.cs

     文件       5612  2010-06-08 00:18  laobenlrb\Backup\laobenlrb\Properties\Resources.resx

     文件       1094  2010-06-08 00:18  laobenlrb\Backup\laobenlrb\Properties\Settings.Designer.cs

     文件        249  2010-06-08 00:18  laobenlrb\Backup\laobenlrb\Properties\Settings.settings

     文件        917  2010-06-08 00:18  laobenlrb\Backup\laobenlrb.sln

    ..A..H.     23552  2010-06-12 16:05  laobenlrb\Backup\laobenlrb.suo

     文件      21504  2010-11-06 21:09  laobenlrb\laobenlrb\bin\Debug\laobenlrb.exe

     文件      50688  2010-11-06 21:09  laobenlrb\laobenlrb\bin\Debug\laobenlrb.pdb

     文件      11608  2010-12-01 22:46  laobenlrb\laobenlrb\bin\Debug\laobenlrb.vshost.exe

     文件        490  2010-03-17 22:39  laobenlrb\laobenlrb\bin\Debug\laobenlrb.vshost.exe.manifest

     文件       1146  2010-06-10 13:20  laobenlrb\laobenlrb\Form1.cs

     文件       5962  2010-06-10 13:18  laobenlrb\laobenlrb\Form1.Designer.cs

     文件       6014  2010-06-10 13:18  laobenlrb\laobenlrb\Form1.resx

     文件      10238  2010-11-06 19:43  laobenlrb\laobenlrb\Form2.cs

     文件      19345  2010-11-06 21:09  laobenlrb\laobenlrb\Form2.Designer.cs

     文件       5814  2010-11-06 19:43  laobenlrb\laobenlrb\Form2.resx

     文件       4292  2010-09-13 18:33  laobenlrb\laobenlrb\laobenlrb.csproj

     文件       6130  2010-11-06 21:09  laobenlrb\laobenlrb\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       2414  2010-11-06 21:07  laobenlrb\laobenlrb\obj\Debug\GenerateResource-ResGen.read.1.tlog

     文件       2410  2010-11-06 21:07  laobenlrb\laobenlrb\obj\Debug\GenerateResource-ResGen.write.1.tlog

     文件          2  2010-11-06 21:07  laobenlrb\laobenlrb\obj\Debug\GenerateResource.read.1.tlog

............此处省略35个文件信息

评论

共有 条评论