473,395 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

pulling my hair out over this picturebox!!!!

50
hi there, i have a mysql db that holds the file paths for images, what i want to do is display the picture that the filepath points in the picturebox in my app, how do you do this, i have been googling for about 2 hours and nothing at all!!!!

thanks
Mar 5 '08 #1
5 903
VBWheaties
145 100+
hi there, i have a mysql db that holds the file paths for images, what i want to do is display the picture that the filepath points in the picturebox in my app, how do you do this, i have been googling for about 2 hours and nothing at all!!!!

thanks
Expand|Select|Wrap|Line Numbers
  1. Set PictureBox.Picture = LoadPicture("C:\MyPic.jpg")
  2.  
Mar 5 '08 #2
jarremw
50
im in vs 2005 not vb6 so the set property isnt working..any other ideas?

thanks for the reply
Mar 5 '08 #3
Killer42
8,435 Expert 8TB
If you have the file name of an image, and want to display that image in a picturebox, your documentation for the picturebox control should give you the answer fairly easily.

(I'd tell you, but I'm an old VB6 developer.)
Mar 6 '08 #4
kadghar
1,295 Expert 1GB
Have you tried with the LOAD method??

Expand|Select|Wrap|Line Numbers
  1. picturebox.load("c:\mypic.jpg")
that one works for vb2005 xpress ed.
Mar 6 '08 #5
QVeen72
1,445 Expert 1GB
Hi,

Try This in Form_Load event:

Me.BackgroundImage = System.Drawing.Image.FromFile("C:\MyPict1.bmp")

Regards
Veena
Mar 6 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: SStory | last post by:
I have a picturebox in my About form. would like to have a link to my company website. Wanted the links background to be transparent. It seems that no one knows how to do this. Have asked...
3
by: Tom | last post by:
I have a picturebox on my VB.NET form. The picturebox size mode is set to stretched. I then load an image into that form and display it. As the user moves the mouse over the form, I want to get and...
0
by: pooja | last post by:
I m working with VB.NET. I have drawn shapes and free hand drawing over a picturebox. I have used collection and arraylist to maintain all objects and items. Now i am unable to find a solution to...
3
by: Andrzej | last post by:
I have a picturebox on my C# .NET form. The picturebox size mode is set to zoom. I then load an image into that form and display it. As the user moves the mouse over the form, I want to get and...
0
by: Jerry West | last post by:
Coming from VB6 a PictureBox was a container for other controls. This doesn't seem to be the case with .NET. In light of that can someone comment on the following.... I'm creating an app that...
1
nathj
by: nathj | last post by:
Hi, I really need some help with this as I've been looking at it for over a day now and I'm sure its really simple. The problem is that I have 3 forms each of which posts to thankyou.php. The...
3
by: kirk | last post by:
I have a form with a PictureBox control on it. The .Image property is set to a PNG file(which shows the picture of the US map) with some transparency in it. The .BackColor property is set to...
1
by: leshka82 | last post by:
I have recently designed a Winform Image drag & drop utility. The approach I took was to have a Panel control serve as a destination for multiple file drop. Once the user dragged & dropped the...
3
by: chris52672 | last post by:
I am pulling my hair out as this should be simple and is not. In the main form I have a Tabcontrol I have 3 tabs and when I start the program I want to have the middle tab up. This never seems...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.