Hello-
I have created a UserControl with the RadRotator on it and 4 buttons. 1 for Previous, 1 for View, 1 for Remove, and 1 for Next. All the buttons work except the Remove button. Here is my code to add images to the RadRotator:
The Remove button calls the RemovePhoto Method. Here is the event handler for the delete button:
Here is the code for the last line the RemovePhotos method:
I an error on the File.Move line that says the file is in use by another process. I have determined that the RadRotator i still holding on to the file through the Image property of the RadImageItem. I am trying to allow a user to look through a directory of photos using the RadRotator. If they find a photo they want to remove, they click the delete button and the photo is removed from the RadRotator and moved to another directory.
How can I programmatically remove an item from the RadRotator and then move it to another directory without the RadRotator still having a lock on the file?
Thanks,
Chance