[COLOR=green][COLOR=green]try
[/COLOR]{
SqlConnection thisConnection = [COLOR=green]new [/COLOR]SqlConnection(@"Network Library=DBMSSOCN;Data Source=192.168.0.100,1433;[B]database[/B]=Northwind;User id=Paladine;Password=;");
thisConnection.Open();
SqlCommand thisCommand = thisConnection.CreateCommand();
thisCommand.CommandText = "[B]SELECT[/B] imageaddress [B]FROM[/B] Customers where name='shahin'";
SqlDataReader thisReader = thisCommand.ExecuteReader();
[COLOR=green]while [/COLOR](thisReader.Read())
{
PictureBox1.Image = System.Drawing.Image.FromFile(thisReader["imageaddress [B]
"].tostring());
}
thisReader.Close();
thisConnection.Close();
}
[COLOR=green]catch [/COLOR](SqlException e)
{
Console.WriteLine(e.Message);
}
[/B][/COLOR][B][/B]