Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. how connect to access database by c#

how connect to access database by c#

Scheduled Pinned Locked Moved C#
csharpdatabaselinqgraphicsannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    salemmohamed
    wrote on last edited by
    #1

    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 lastone { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'database21DataSet.Table1' table. You can move, or remove it, as needed. this.table1TableAdapter1.Fill(this.database21DataSet.Table1); // TODO: This line of code loads data into the 'database21DataSet1.Table1' table. You can move, or remove it, as needed. this.table1TableAdapter.Fill(this.database21DataSet1.Table1); } private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { } private void groupBox1_Enter(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { this.table1TableAdapter.Update(database21DataSet1); MessageBox.Show("Updated ,,,successfully"); } private void button2_Click(object sender, EventArgs e) { } private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { } } }

    C L 2 Replies Last reply
    0
    • S salemmohamed

      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 lastone { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'database21DataSet.Table1' table. You can move, or remove it, as needed. this.table1TableAdapter1.Fill(this.database21DataSet.Table1); // TODO: This line of code loads data into the 'database21DataSet1.Table1' table. You can move, or remove it, as needed. this.table1TableAdapter.Fill(this.database21DataSet1.Table1); } private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { } private void groupBox1_Enter(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { this.table1TableAdapter.Update(database21DataSet1); MessageBox.Show("Updated ,,,successfully"); } private void button2_Click(object sender, EventArgs e) { } private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { } } }

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You posted a ton of useless code. Type your question into google to get the sort of in depth answer I suspect you will need.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • S salemmohamed

        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 lastone { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'database21DataSet.Table1' table. You can move, or remove it, as needed. this.table1TableAdapter1.Fill(this.database21DataSet.Table1); // TODO: This line of code loads data into the 'database21DataSet1.Table1' table. You can move, or remove it, as needed. this.table1TableAdapter.Fill(this.database21DataSet1.Table1); } private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { } private void groupBox1_Enter(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { this.table1TableAdapter.Update(database21DataSet1); MessageBox.Show("Updated ,,,successfully"); } private void button2_Click(object sender, EventArgs e) { } private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { } } }

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Look these connection strings and use them with OleDbDataAdapter or OdbcDataAdapter classes.

        modified on Tuesday, August 4, 2009 4:40 AM

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups