Click here to Skip to main content
15,917,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: image transparent Pin
Ennis Ray Lynch, Jr.25-Jan-08 9:33
Ennis Ray Lynch, Jr.25-Jan-08 9:33 
GeneralTaskbarNotifier in Client Server Application Pin
ALI BIN ABID25-Jan-08 4:04
ALI BIN ABID25-Jan-08 4:04 
GeneralRe: TaskbarNotifier in Client Server Application Pin
DaveyM6925-Jan-08 4:13
professionalDaveyM6925-Jan-08 4:13 
GeneralRe: TaskbarNotifier in Client Server Application Pin
ALI BIN ABID25-Jan-08 4:22
ALI BIN ABID25-Jan-08 4:22 
QuestionWhat is Dirty ? Pin
Nadia Monalisa25-Jan-08 4:01
Nadia Monalisa25-Jan-08 4:01 
AnswerRe: What is Dirty ? Pin
DaveyM6925-Jan-08 4:06
professionalDaveyM6925-Jan-08 4:06 
GeneralRe: What is Dirty ? Pin
Nadia Monalisa25-Jan-08 4:26
Nadia Monalisa25-Jan-08 4:26 
GeneralDatabinding small mistakes Pin
Trustapple25-Jan-08 3:10
Trustapple25-Jan-08 3:10 
Hello,

Am trying to bind data.This is my code.Is there any problem with my code since it does not seem to work.

Take your time.

Thanking You

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;

namespace TestDb
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void btnInsert_Click(object sender, EventArgs e)
{
OleDbConnection conObj = new OleDbConnection();
conObj.ConnectionString=@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\j\My Documents\MyDb.mdb";
conObj.Open();
OleDbCommand cmdObj = new OleDbCommand();
cmdObj.CommandText = "Insert into MyTable(Name) values ('" + txtName.Text + "')";

cmdObj.Connection = conObj;

cmdObj.ExecuteNonQuery();

txtName.Clear();





}

private void btnBind_Click(object sender, EventArgs e)
{
OleDbConnection conObj = new OleDbConnection();
conObj.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\j\My Documents\MyDb.mdb";
conObj.Open();
OleDbCommand cmdObj = new OleDbCommand();
cmdObj.CommandText = "select Name from MyTable";

DataSet ds = new DataSet();
cmdObj.Connection = conObj;
OleDbDataAdapter adapObj = new OleDbDataAdapter();
adapObj.SelectCommand = cmdObj;


adapObj.Fill(ds);







}
}
}
GeneralRe: Databinding small mistakes Pin
Justin Perez25-Jan-08 3:30
Justin Perez25-Jan-08 3:30 
GeneralRe: Databinding small mistakes Pin
Paul Conrad25-Jan-08 3:34
professionalPaul Conrad25-Jan-08 3:34 
Generaldon't use CODE, use PRE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Luc Pattyn25-Jan-08 3:49
sitebuilderLuc Pattyn25-Jan-08 3:49 
GeneralRe: don't use CODE, use PRE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Paul Conrad25-Jan-08 3:53
professionalPaul Conrad25-Jan-08 3:53 
GeneralRe: don't use CODE, use PRE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
DeepToot25-Jan-08 7:51
DeepToot25-Jan-08 7:51 
GeneralRe: don't use CODE, use PRE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Paul Conrad25-Jan-08 8:18
professionalPaul Conrad25-Jan-08 8:18 
GeneralRe: Databinding small mistakes Pin
Adeel Chaudhry26-Jan-08 4:55
Adeel Chaudhry26-Jan-08 4:55 
Generalc# tab web browser Pin
precious roy25-Jan-08 2:42
precious roy25-Jan-08 2:42 
GeneralRe: c# tab web browser Pin
Paul Conrad25-Jan-08 3:35
professionalPaul Conrad25-Jan-08 3:35 
GeneralRe: c# tab web browser Pin
Adeel Chaudhry26-Jan-08 6:19
Adeel Chaudhry26-Jan-08 6:19 
QuestionHow to read text present on a image Pin
harivinod25-Jan-08 2:38
harivinod25-Jan-08 2:38 
AnswerRe: How to read text present on a image - Cross-post, ignore Pin
Justin Perez25-Jan-08 3:33
Justin Perez25-Jan-08 3:33 
GeneralRe: How to read text present on a image - Cross-post, ignore Pin
Paul Conrad25-Jan-08 3:36
professionalPaul Conrad25-Jan-08 3:36 
GeneralRe: How to read text present on a image - Cross-post, ignore Pin
Justin Perez25-Jan-08 3:37
Justin Perez25-Jan-08 3:37 
GeneralRe: How to read text present on a image - Cross-post, ignore Pin
Paul Conrad25-Jan-08 3:41
professionalPaul Conrad25-Jan-08 3:41 
AnswerRe: How to read text present on a image Pin
Paul Conrad25-Jan-08 3:36
professionalPaul Conrad25-Jan-08 3:36 
AnswerRe: How to read text present on a image Pin
J4amieC25-Jan-08 4:43
J4amieC25-Jan-08 4:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.