What I understand from your post is that u need to display multiple
images, but before displaying a whole image, you just want to diplay
its thumbnail.
What I Suggest is to use ListView Control to solve your problem. You
need to add ImageList Componet to your Form, then Assigning it to the
ListView's LargeImageList and SmallImageList properties. When loading
images from Database, add those images to the ImageList. Setting the
ListView's View Propety to LargeIcons. After loading and assigning
images to the ImageList, for each and every row of the datatable add
an item to the listview with corresponding ImageIndex/Imagekey.
When you are done with it, then write down in the double click event
of the ListView the following code
/**/
{
byte[] buffer = (byte[])row["Image"];//Take An Image
from DataRow
System.IO.FileStream fs=new System.IO.FileStream
("Default.jpg",System.IO.FileMode.OpenOrCreate,System.IO.FileAccess.ReadWrite);
System.IO.BinaryWriter writer = new
System.IO.BinaryWriter(fs);
writer.Write(buffer,0,buffer.Length);
System.Diagnostics.Process.Start("Default.jpg");
}
/**/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---