Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to detect if a *.bmp files is modificated in Paint? Pin
amx_tiger22-Apr-12 2:07
amx_tiger22-Apr-12 2:07 
GeneralRe: How to detect if a *.bmp files is modificated in Paint? Pin
Eddy Vluggen22-Apr-12 2:18
professionalEddy Vluggen22-Apr-12 2:18 
GeneralRe: How to detect if a *.bmp files is modificated in Paint? Pin
Richard MacCutchan22-Apr-12 2:29
mveRichard MacCutchan22-Apr-12 2:29 
GeneralRe: How to detect if a *.bmp files is modificated in Paint? Pin
amx_tiger22-Apr-12 2:48
amx_tiger22-Apr-12 2:48 
GeneralRe: How to detect if a *.bmp files is modificated in Paint? Pin
Dave Kreskowiak22-Apr-12 5:43
mveDave Kreskowiak22-Apr-12 5:43 
Questioncsharp perim Pin
ShomaL University of AMOL21-Apr-12 13:10
ShomaL University of AMOL21-Apr-12 13:10 
AnswerRe: csharp perim PinPopular
Luc Pattyn21-Apr-12 13:36
sitebuilderLuc Pattyn21-Apr-12 13:36 
Questionadd button in run time Pin
Nabawoka21-Apr-12 5:21
Nabawoka21-Apr-12 5:21 
AnswerRe: add button in run time Pin
PIEBALDconsult21-Apr-12 5:37
mvePIEBALDconsult21-Apr-12 5:37 
GeneralRe: add button in run time Pin
Nabawoka21-Apr-12 5:49
Nabawoka21-Apr-12 5:49 
GeneralRe: add button in run time Pin
PIEBALDconsult21-Apr-12 7:05
mvePIEBALDconsult21-Apr-12 7:05 
GeneralRe: add button in run time Pin
Nabawoka21-Apr-12 6:01
Nabawoka21-Apr-12 6:01 
AnswerRe: add button in run time Pin
Nabawoka21-Apr-12 6:08
Nabawoka21-Apr-12 6:08 
AnswerRe: add button in run time Pin
Abhinav S21-Apr-12 6:11
Abhinav S21-Apr-12 6:11 
GeneralRe: add button in run time Pin
Nabawoka21-Apr-12 6:20
Nabawoka21-Apr-12 6:20 
Questionms access database ( help pls) Pin
mohammed_198321-Apr-12 2:45
mohammed_198321-Apr-12 2:45 
AnswerRe: ms access database ( help pls) Pin
Wes Aday21-Apr-12 2:51
professionalWes Aday21-Apr-12 2:51 
GeneralRe: ms access database ( help pls) Pin
mohammed_198321-Apr-12 2:57
mohammed_198321-Apr-12 2:57 
C#
private void Add_btn_Click(object sender, System.EventArgs e)
        {
            try
            {
                this.oleDbDataAdapter1.InsertCommand.CommandText =
                    "INSERT INTO Db (p-name, address, ID, dnasequence)" +
                    "VALUES     ('"+ this.textBox3.Text +"','"+this.textBox4.Text+
                    "' , "+ this.textBox1.Text +",'"+ this.textBox2.Text+ "')";

                //open the bridge between the application and the datasource
                this.oleDbConnection1.Open();

                this.oleDbDataAdapter1.InsertCommand.Connection = oleDbConnection1;

                 //execute the qurey
                this.oleDbDataAdapter1.InsertCommand.ExecuteNonQuery();

                //close the connection
                this.oleDbConnection1.Close();

                MessageBox.Show("Record insedted Successfully");






C#
private void up_btn_Click(object sender, System.EventArgs e)
        {
            try
            {
                this.oleDbDataAdapter1.UpdateCommand.CommandText =
                    "UPDATE    Db SET "+
                    "p-name ='"+ this.textBox3.Text +"', address ='"+this.textBox4.Text +
                    "', ID ="+this.textBox1.Text+", dnasequence ='"+ this.textBox2.Text+"'"  +
                     " WHERE  ID ="+ this.textBox1.Text;

                //open the bridge between the application and the datasource
                this.oleDbConnection1.Open();

                this.oleDbDataAdapter1.UpdateCommand.Connection = oleDbConnection1;

                //execute the qurey
                this.oleDbDataAdapter1.UpdateCommand.ExecuteNonQuery();

                //close the connection
                this.oleDbConnection1.Close();

                MessageBox.Show("Record updated Successfully");

QuestionRe: ms access database ( help pls) Pin
Eddy Vluggen21-Apr-12 3:23
professionalEddy Vluggen21-Apr-12 3:23 
AnswerRe: ms access database ( help pls) Pin
mohammed_198321-Apr-12 3:32
mohammed_198321-Apr-12 3:32 
GeneralRe: ms access database ( help pls) Pin
Eddy Vluggen21-Apr-12 4:15
professionalEddy Vluggen21-Apr-12 4:15 
GeneralRe: ms access database ( help pls) Pin
Wes Aday21-Apr-12 5:08
professionalWes Aday21-Apr-12 5:08 
AnswerRe: ms access database ( help pls) Pin
Abhinav S21-Apr-12 6:09
Abhinav S21-Apr-12 6:09 
Questionhow to render SVG font in C# Pin
m_kramar21-Apr-12 0:03
m_kramar21-Apr-12 0:03 
QuestionC# Bouncing Animation (Diagonally) Pin
Midnight Ahri20-Apr-12 15:29
Midnight Ahri20-Apr-12 15:29 

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.