Hol que tal buen dia tengan todos, pues aqui de nuevo preguntando sobre un errror de c# y lo manejo con visual estudio 2008 el codigo lo que hace es una simulacion de acuario en el cual inserta modifica borra y muestra, aja el insertar lo hace pero al momento de darle en modificar borrrar y mostrar me manda un error..
este es mi codigo:
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 WindowsFormsApplication2
{
    public partial class Form4 : Form
    {
        public Form4()
        {
            InitializeComponent();
        }
 
        private void Form4_Load(object sender, EventArgs e)
        {
            oleDbDataAdapter1.Fill(dataSet11);
            oleDbDataAdapter2.Fill(dataSet11);
        }
 
        private void oleDbConnection1_InfoMessage(object sender, System.Data.OleDb.OleDbInfoMessageEventArgs e)
        {
 
        }
 
        private void button1_Click(object sender, EventArgs e)
        {
            oleDbCommand1.Parameters[0].Value = textBox1.Text;
            oleDbCommand1.Parameters[1].Value = textBox2.Text;
            oleDbCommand1.Parameters[2].Value = textBox3.Text;
            oleDbCommand1.Parameters[3].Value = textBox4.Text;
            oleDbCommand1.Parameters[4].Value = listBox3.Text;
            oleDbCommand1.Parameters[5].Value = listBox1.Text;
 
            oleDbConnection1.Open();
            try
            {
                oleDbCommand1.ExecuteNonQuery();
            }
            catch (Exception)
            {
                MessageBox.Show("ocurrio un error");
            }
            oleDbConnection1.Close();
 
        }
 
        private void button2_Click(object sender, EventArgs e)
        {
            oleDbCommand2.Parameters[0].Value = textBox1.Text;
 
            oleDbConnection1.Open();
            try
            {
                oleDbCommand2.ExecuteNonQuery();
            }
            catch (Exception)
            {
                MessageBox.Show(" a ocurridoun error");
            }
            oleDbConnection1.Close();
        }
 
        private void button3_Click(object sender, EventArgs e)
        {
            oleDbCommand3.Parameters[0].Value = textBox2.Text;
            oleDbCommand3.Parameters[1].Value = textBox3.Text;
            oleDbCommand3.Parameters[2].Value = textBox4.Text;
            oleDbCommand3.Parameters[3].Value = textBox1.Text;
            oleDbConnection1.Open();
            try
            {
                oleDbCommand3.ExecuteNonQuery();
            }
            catch (Exception)
            {
                MessageBox.Show(" a ocurridoun error");
            }
            oleDbConnection1.Close();
 
     }
 
        private void button4_Click(object sender, EventArgs e)
        {
            dataSet21.Clear();
 
            oleDbDataAdapter4.SelectCommand.Parameters[0].Value = textBox1.Text;
            oleDbDataAdapter4.Fill(dataSet21);
        }
 
         }
} 
   
 

 Visual Studio 2008 c#
 Visual Studio 2008 c# 


 .
. 

