TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vijay raj
NA
19
21.6k
Picture Box not displaying the image loaded from access db.
Aug 5 2013 1:41 PM
hello guys, i have windows form in which i load the data searching by name. In first attempt it shows the selected data with image. But, when i search with new name, text and numbers are getting displayed but image remains the same old one loaded before. This is my code
To load picture in picturebox
pictureBox1.Image = ByteArrayToImage1((Byte[])dt.Rows[0]["pic"]);
Converts byte array to image
Bitmap ByteArrayToImage1(byte[] b)
{
MemoryStream ms = new MemoryStream();
byte[] pData = b;
ms.Write(pData, 0, Convert.ToInt32(pData.Length));
Bitmap bm = new Bitmap(ms, false);
ms.Dispose();
return bm;
}
Guys please solve this asap, i have tried
=>this.image ==null;
=>refresh(),update() etc.
=>Dispose() also
but none of them where success.... please what should i do??
Reply
Answers (
3
)
Application Packaging
is there any third party controls for wnidows ce device apps