Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Show image in the database ???

Show image in the database ???

Scheduled Pinned Locked Moved C#
questiondatabase
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    npqk
    wrote on last edited by
    #1

    How can I show the images in database (sqlserver) on the Windows Form ???

    H 1 Reply Last reply
    0
    • N npqk

      How can I show the images in database (sqlserver) on the Windows Form ???

      H Offline
      H Offline
      Hubert
      wrote on last edited by
      #2

      You will need datasource and some control able to display data from your datasource. You can build your datasource using regular SqlDataAdapter (just drop your table on the form) and then generate dataset. Add OnLoad or button event and fill your dataset. Displaying data is a little bit more complicated since there is no standard control able to do that. There are several solutions: 1. Easiest one - download VB resource kit from Microsoft site. You can find a ComponentOne Studio.NET controls (quite old but full version and free) there. There is some clever control named C1PictureBox which you can bind directly to field containing your image data 2. You can write your own control. You can do that overloading PictureBox control and using byte array, image class and binding events (optional). I think, someone wrote great article about it - it was example of using Northwind pictures in windows forms - try to search for it.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups