none
How to add and image to database and display it in the application form

    General discussion

  • <p>Hi guys.</p><p>I'm new to C# so forgive me if I write something silly.</p><p></p><p>I have created a data base called BooksData.mdf with 7 colums and five rows looks like that:</p><p>BooksID &nbsp;Title &nbsp;CurrentPrice &nbsp;NumberOfBids &nbsp;AuthorsName &nbsp;PublishYear &nbsp;PublishersName</p><p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>Now the question is how can I get a picture displayed in the application form when a particular BooksID has been displayed in the application?</p><p><img alt="" src="http://social.msdn.microsoft.com/Forums/getfile/203020" /></p><p>Any help would be appreciated.</p><p>Thank you</p>
    Monday, December 03, 2012 8:06 PM

All replies

  • Hi guys.

    Sorry for the previous messy post.

    I'm new to C# so forgive me if I write something silly.

    I have created a data base called BooksData.mdf with 7 colums and five rows looks like that:

    BooksID  Title  CurrentPrice NumberOfBids AuthorsName PublishYear  PublishersName

    1

    2

    3

    4

    5

    Now the question is how can I get a picture displayed in the application form when a particular BooksID has been displayed in the application.

    Here is a screenshot of my application, hope the link works.

    http://social.msdn.microsoft.com/Forums/getfile/203020

    Any help would be appreciated.

    Thank you


    • Edited by booboo84 Monday, December 03, 2012 8:10 PM
    Monday, December 03, 2012 8:10 PM
  • Add to your data base FilePath and use it to load new image into pictureBox.

    PictureBox in C#

    How to draw Efficiently on Picture Box in C#


    Classified SR-2 | 2x Xeon W5580 - 3.20 GHz | 12x 2GB Kingston KHX2000C9D3T1K3/6GX | 2x MARS II/2DIS/3GD5 | SAMSUNG 830 MZ-7PC512D/AM 2.5" 512GB SATA III MLC | 4x Spinpoint F3EG HD503HI 500GB 5400 16MB SATA 3.0Gb/s |


    • Edited by VendorX Monday, December 03, 2012 10:26 PM
    Monday, December 03, 2012 10:21 PM