View Single Post
  #4 (permalink)  
Old 07-09-2009, 2:11 PM
bigklaxer bigklaxer is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jul 2009
Age: 19
Posts: 6
Reputation: 0
bigklaxer is on a distinguished programming path ahead
Default

Well basically what happens is in the designer the user selects an image file they want to move using an open file dialog and the image is displayed in a picture box. Then they select a folder for it to be moved into using a folder browser dialog. The program then moves the file to the selected folder. The program works fine and they could just continue selecting a new file but I want to make it easier and have the program automatically open the next file in the folder that the original file they selected was located in. Here's the code to move the file.

System.IO.File.Move(txtLocation.Text, txtDirectory.Text & folderName & newName & ".jpg")

Btw, thanks a ton for the help on #2
Reply With Quote