0

My table as 10 text fields and one picture box, I've failed to display the picture from the database to the picture box.

Screenshot of my codescreenshot of my code

  • In future please post your actual code, and not a screenshot! That makes it easier for people to help. – stuartd Apr 01 '23 at 14:13
  • I’d also recommend using parameters rather than building the SQL as it makes SQL injection impossible, as well as being a lot more readable and reliable – stuartd Apr 01 '23 at 14:15
  • Finally, some of the objects you used should be disposed at the end of the method - the SqlCommand and the DataAdapter. You can do this manually by calling `.Dispose()` or wrap the objects in a `using` statement. – stuartd Apr 01 '23 at 14:16
  • The following may be helpful: https://stackoverflow.com/a/66616751/10024425 – Tu deschizi eu inchid Apr 01 '23 at 14:50

0 Answers0