{[ntb] = usery.Tables [0]. Rows [i] ["textx"]. ToString (); + +;
}
} [] ss = new string [ntb]; (int i = 0; i
{[i] = s [i];
}. Lines = ss;. Text = "";. Select (textBox1.Text.Length-1, 0);. ScrollToCaret ();
} void button1_Click (object sender, System.EventArgs e)
{
{(textBox2.Text! = "" & nom! = -1)
{= 0; DBConnectionString = @ "Provider = Microsoft.Jet.OLEDB.4.0; Data Source = db1.mdb";. Data.OleDb.OleDbConnection aCon = new System.Data.OleDb. OleDbConnection (DBConnectionString);. Data.OleDb.OleDbCommand команда = new System.Data.OleDb.OleDbCommand ("", aCon);. Data.OleDb.OleDbDataAdapter adapter = new System.Data.OleDb.OleDbDataAdapter (команда);
команда.CommandText = "INSERT INTO usery (id_disciplina, textx) VALUES (" + "" + nom.ToString () + ", '" + textBox2.Text + " ; ') ";. Open ();
команда.ExecuteNonQuery ();. Close (); = new DataSet ();. Open ();
команда.CommandText = "SELECT * FROM forum";. SelectCommand = команда;. Fill (forum, "forum");. Close (); = new DataSet ();. Open ( );
команда.CommandText = "SELECT * FROM usery";. SelectCommand = команда;. Fill (usery, "usery");. Close (); = new string [32000]; (int i = 0; i
{[ntb] = forum.Tables [0]. Rows [i] ["textx"]. ToString (); + +;
}
} (int i = 0; i
{[ntb] = usery.Tables [0]. Rows [i] ["textx"]. ToString (); + +;
}
} [] ss = new string [ntb]; (int i = 0; i
{[i] = s [i];
}. Lines = ss;. Text = "";. Select (textBox1.Text.Length-1, 0);. ScrollToCaret ();. Focus ();
}
} (Exception err)
{. Show (err.Message);
}
}
}
}
{
///
///Summary description for Form2.
/// class Form2: System.Windows.Forms.Form
{System.Windows.Forms.Label label1; System.Windows.Forms.TextBox textBox1; System.Windows.Forms.Button button1;
///
///Required designer variable.
/// System.ComponentModel.Container components = null; Form2 ()
{
//
// Required for Windows Form Designer support
// ();
//