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
System.Data.SqlClient;using
Microsoft.VisualBasic;using
System.IO;using
System.Drawing.Imaging;namespace
{
{
{
InitializeComponent();
}
{
con =
loaddata();
showdata();
}
{
cmd =
cmd.CommandType =
adapter.MissingSchemaAction =
ds =
}
{
{
textBox1.Text = ds.Tables[0].Rows[eno][0].ToString();
textBox2.Text = ds.Tables[0].Rows[eno][1].ToString();
comboBox1.Text = ds.Tables[0].Rows[eno][2].ToString();
pictureBox1.Image =
{
photo_aray = (
pictureBox1.Image =
}
}
}
{
openFileDialog1.Filter =
{
pictureBox1.Image =
}
}
{
textBox1.Text = textBox2.Text =
comboBox1.Text =
pictureBox1.Image =
}
{
cmd =
cmd.CommandType =
cmd.Parameters.AddWithValue(
cmd.Parameters.AddWithValue(
cmd.Parameters.AddWithValue(
conv_photo();
con.Open();
con.Close();
{
loaddata();
}
}
{
{
ms =
pictureBox1.Image.Save(ms,
ms.Position = 0;
ms.Read(photo_aray, 0, photo_aray.Length);
cmd.Parameters.AddWithValue(
}
}
{
{
drow = ds.Tables[0].Rows.Find(n);
{
eno = ds.Tables[0].Rows.IndexOf(drow);
textBox1.Text = drow[0].ToString();
textBox2.Text = drow[1].ToString();
comboBox1.Text = drow[2].ToString();
pictureBox1.Image =
{
photo_aray = (
pictureBox1.Image =
}
}
}
{
}
}
{
cmd =
cmd.CommandType =
cmd.Parameters.AddWithValue(
cmd.Parameters.AddWithValue(
cmd.Parameters.AddWithValue(
conv_photo();
con.Open();
con.Close();
{
loaddata();
}
}
{
cmd =
cmd.CommandType =
cmd.Parameters.AddWithValue(
con.Open();
{
loaddata();
eno = 0;
showdata();
con.Close();
}
{
}
}
{
{
eno++; showdata();
}
{
}
}
{
{
eno--; showdata();
}
}
{
eno = ds.Tables[0].Rows.Count - 1;
showdata();
}
{
eno = 0; showdata();
}
{
}
}
}
Replies
Know the answer? Post it — somebody with the same question will find it here.