Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Visual Basic 2005 Basics
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 4th, 2006, 11:45 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Displaying an image from database table

Please am having a little problem displaying an image on a VB.Net form. Am able to save the path of an image to SQL Server 2000 database table. My problem is displaying an image in a PictureBox from the database. What property of the Picturebox do I need to set to point to the field that contains the image path in the database? Is there any way the image property be binded to the image field in the database? Or what codes do I need to write to do this?
I have a textbox that displays the image path from the database which I hope to make invisible as soon as the PictureBox starts working. How do I wire up the PictureBox to this textbox?

Thanks.


 
Old January 4th, 2006, 03:40 PM
Authorized User
 
Join Date: Dec 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi there:

I had a lot of trouble at first with the same situation. I found all the answers in the VB5 Help System. (Click on the magnifying glass under help to search)

Go there and search for "Add a picture to a form" and you will come up with a many pages of "how to do it" from several different prospectives.

A couple of the examples walk you thru the whole process.

Take care,
George Race






Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Database Image into Crystal Reports krishnavaloor Crystal Reports 0 February 23rd, 2008 12:28 AM
Image not displaying shoakat ASP.NET 2.0 Professional 2 June 22nd, 2007 10:02 AM
array displaying as image vinodkokane Visual C++ 1 April 23rd, 2007 12:06 AM
displaying an image from file stream into an image sanjeet ADO.NET 0 September 23rd, 2005 10:28 AM
Displaying user image from sql database palvin Classic ASP Databases 14 July 6th, 2005 05:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.