Legent Mady

Legent Mady

  • NA
  • 41
  • 12.5k

data base to date time picker value not displayed

Mar 26 2017 9:44 PM
i am using vs2015 , 
 
my database table columns is regno,name,dob,image
 
my retrive form code is..
 
 
if (DS.Tables[0].Rows.Count > 0)
{
textBox2.Text = DS.Tables[0].Rows[0].ItemArray[0].ToString();
textBox3.Text = DS.Tables[0].Rows[0].ItemArray[1].ToString();
comboBox1.Text = DS.Tables[0].Rows[0].ItemArray[3].ToString();
comboBox7.Text = DS.Tables[0].Rows[0].ItemArray[4].ToString();
comboBox2.Text = DS.Tables[0].Rows[0].ItemArray[5].ToString();
comboBox3.Text = DS.Tables[0].Rows[0].ItemArray[6].ToString();
MemoryStream MS = new MemoryStream((byte[])DS.Tables[0].Rows[0]["IMAGE"]);
pictureBox1.Image = new Bitmap(MS);
MessageBox.Show ("SEARCH FINISHED");
}
 
 
 
 
how to datetime picker to retrive dob values?
 
 
 
 
 

Answers (5)