473,396 Members | 1,738 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,396 software developers and data experts.

display pictures from a folder

Hello all,
Is there a simple cod in vb 2008 to find a folder on a network and open
a picture from that folder inside the form?

thanks for any of your help.
Oct 1 '08 #1
3 7177
On Oct 1, 6:15*am, karim <ka...@discussions.microsoft.comwrote:
Hello all,
* * *Is there a simple cod in vb 2008 to find a folder on a networkand open
a picture from that folder inside the form?

thanks for any of your help.
You can use the System.IO.Directory class to find the particular file,
and then depending on what you mean by "open a picture" you can load
the image onto your form or open it with the default program by using
System.Diagnostics.Process.Start(...)

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Oct 1 '08 #2
On Oct 1, 1:15*pm, karim <ka...@discussions.microsoft.comwrote:
Hello all,
* * *Is there a simple cod in vb 2008 to find a folder on a networkand open
a picture from that folder inside the form?

thanks for any of your help.
If you're meaning of simply running a file regardless of its
extenstion, you can use System.Diagnostics.Process.Start passing
proper arguments.

If you just want to display image files on your form, use PictureBox
control on your form and you can load images dynamically using
Picturebox's ImageLocation property.

' Like:
PictureBox1.ImageLocation = "c:\file.jpg"

Hope this helps,

Onur Güzel
Oct 1 '08 #3
thanks alot for the help. that answers my question...

Oct 2 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: qqqq | last post by:
Hi I have a web page that displays properties for sale. The web page links to a database. The page shows information in the database and the path to the picture. The code is
3
by: RAllsopp | last post by:
I have a client who would like to have several pictures associated with one system. I have read about storing only the pathname to save OLE overhead and have set-up a form for my client to...
1
by: bborden | last post by:
Novice Access programmer here. I would like to display an image using the Toolbox Image object by calling the images file name using: =fPictureFiles(!!,1) in the Picture control. Below...
12
by: Wadim Grasza | last post by:
I want to store and display (on a form or a report) multiple pictures per record in an access database. The pictures are not stored within the database. They are stored as files and the database...
1
by: Joey | last post by:
Hello all, I have a machine with the following config: Windows XP Professional Microsoft SQL Server 2005 Standard Ed Microsoft SQL Server Management Studio Express (it works fine with...
0
by: George Race | last post by:
I am trying to display pictures in either ReportViewer or Crystal Reports, using VB 2005. I have the path to pictures in a Form text box that is linked to the database containing the full path to...
4
by: Zeljko Bilandzija | last post by:
Hy, could someone help me in this: In design mode, i want to put pictures in database. I made column named pics, and its type as image. How can I put pictures or some address of these pictures...
0
parshupooja
by: parshupooja | last post by:
Contact Reply 1 point Member propoo Joined on 08-31-2007, 10:32 PM Posts 3 Hey all ,
46
by: OldBirdman | last post by:
What a mess this question is. I have spent 2 weeks trying to make it concise and clear, and I can't. I do not have the vocabulary for the question. I cannot even TITLE it correctly. Here is my...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.