Results 1 to 4 of 4

Thread: [RESOLVED] Picture preview in form

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    10

    Resolved [RESOLVED] Picture preview in form

    Hi,

    I have a database (mdb 2003) with few columns, one of them is OLE object (picture). On my form (vb 2005) almost everything works, adding columns, editing, saving but preview or opening the picture won't work. I tried picturebox, datagrid but nothing seems to work for me.

    Please help.

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Picture preview in form

    How are you retrieving the image stored in your database? When you said nothing seem to work, what did you mean by that? Any exceptions?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Picture preview in form

    You might like to follow the Images In Databases link in my signature. You'll obviously have to use OleDb rather than SqlClient but I think it should work with that column type.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    10

    Re: Picture preview in form

    Yes, that's it!

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width