Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

showing images instead of images's path

Status
Not open for further replies.

esengul

Instructor
Dec 9, 2004
59
US
here is my code(partial)
DataGrid1.AutoGenerateColumns = False
Dim datagridcol As New BoundColumn
datagridcol.HeaderText = " Image Name "
datagridcol.DataField = "Name"
DataGrid1.Columns.Add(datagridcol)
Dim datagridcol1 As New BoundColumn
datagridcol1.HeaderText = " File Name "
datagridcol1.DataField = "fileName"
DataGrid1.Columns.Add(datagridcol1)
Me.DataGrid1.DataBind()

here is the how it looks
Image Name File Name
Overall Course O:\Dept\temp\TrainingPilotImages\Appendix A Figure 1.jpg
Diminishing Clearance O:\Dept\temp\TrainingPilotImages\Appendix A Figure 2.jpg
Stop Line O:\Dept\temp\TrainingPilotImages\Appendix A Figure 3.jpg
Parallel Park O:\Dept\temp\TrainingPilotImages\Appendix A Figure 4.jpg
Back into Loading Dock O:\Dept\temp\TrainingPilotImages\Appendix A Figure 5.jpg
Serpentine O:\Dept\temp\TrainingPilotImages\Appendix A Figure 6.jpg
testing2 O:\Dept\temp\slothhelmet.JPG

I want to show the pictures instead of the filenames and path
dont know how to do that
please help me
thanks
 
Code:
picturebox1.image = image.fromfile(pathname)
[code]

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
Hi Crissie1
I am not sure i know how to that. Could you explain that to me?

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top