Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Displaying and Saving image to picturebox?

SOLVeED SOLVeED SOLVeED SOLVeED SOLVeED SOLVeED SOLVeED SOLVeED SOLVeED SOLVeED SOLVeED SOLVeED SOLVeED SOLVeED
You need to put your code to load in the form load event or constructor. When you close a form everything is disposed of.
You have to bind database to the picturebox field through the option 'databindings'
The easiest way is to use LINQ TO SQL.

Create in database if it is MSSQL, an Column with IMAGE Attribute.

And then you can use like this.

Picturebox1.image = Database.Users.Where(x=>x.username='Hackforums').firstOrDefault().Image;


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by dawid17Oct 17, 2020 05:22 AM 1 137 Oct 17, 2020 05:22 AM
Last Post: saltycracker
[C#] by C++Dec 29, 2019 06:16 PM 16 830 Dec 29, 2019 06:16 PM
Last Post: DNA
[.NET] by Ferrari F40Dec 7, 2019 12:07 PM 1 255 Dec 7, 2019 12:07 PM
Last Post: itcorp