Thread: Image List
View Single Post
  #58 (permalink)  
Old 08-28-2008, 12:11 PM
wazofski wazofski is offline
Programmer
 
Join Date: Feb 2008
Posts: 126
Credits: 0
Rep Power: 4
wazofski is on a distinguished road
Default Re: Image List

wow, I fixed it with just replacing a simple code line :

If Dialog1.FileNames.Count > 0 Then
Dialog1.ShowDialog() "<<-------
For Each Path In Dialog1.FileNames
Dim IMG As System.Drawing.Image = System.Drawing.Image.FromFile(Path)
Image1.Images.Add(IMG)
Next Path
Else
MessageBox.Show("You have not selected any images")
End If

EDIT:
Only one thing:
this has nothing to do with the dialog thing.
What code do I need to use, so my program will autmaticly know where a file is located. Because if a file has this path for me:
C:\Program Files\Microsoft\lol.jpg

And somebody else places it somewhere else then the picture wont load. So what is the code for that? I know there is but I can't remember it

Last edited by wazofski; 08-28-2008 at 01:22 PM.
Reply With Quote