C# Code For Beginner (Part 2)
1. Delete Item in Database using Textbox 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 MySql.Data.MySqlClient; namespace blog2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btndel_Click(object sender, EventArgs e) { string MyConnection2 = "server=localhost;user id=root;password=;database=blog"; string Query = "delete from example where Item_Code='" + this.tbdel.Text + "';"; MySqlConnection MyConn2 = new MySqlConnection(MyConnection2); ...