Click here to Skip to main content
15,915,848 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Import Csv file to Access Pin
Vimalsoft(Pty) Ltd14-Jun-07 21:38
professionalVimalsoft(Pty) Ltd14-Jun-07 21:38 
QuestionFlexgrid how to enable scrollbars Pin
kankeyan14-Jun-07 2:02
kankeyan14-Jun-07 2:02 
AnswerRe: Flexgrid how to enable scrollbars Pin
Dave Kreskowiak14-Jun-07 5:28
mveDave Kreskowiak14-Jun-07 5:28 
QuestionVB.Net 2005 Questions Pin
Central_IT14-Jun-07 1:41
Central_IT14-Jun-07 1:41 
AnswerRe: VB.Net 2005 Questions Pin
Dave Kreskowiak14-Jun-07 5:27
mveDave Kreskowiak14-Jun-07 5:27 
Questionbuilt video movie maker in vb.NET application Pin
cheerup_woe14-Jun-07 0:20
cheerup_woe14-Jun-07 0:20 
AnswerRe: built video movie maker in vb.NET application Pin
Steven J Jowett14-Jun-07 5:14
Steven J Jowett14-Jun-07 5:14 
QuestionCannot delete file because it is in use by another process Pin
Tom Deketelaere13-Jun-07 23:36
professionalTom Deketelaere13-Jun-07 23:36 
situation:
I'v created a form with loads server usercontrols. In those usercontrols are all images in a certain folder.
Problem:
I want the user to be able to select one and press delete so that the file is deleted from the hard drive.
I know the path from the file (= property in usercontrol) but when I use
system.io.file.delete(path) I get the folowing message:
"The process cannot access the file 'C:\Documents and Settings\Tom\Mijn documenten\Mijn afbeeldingen\Kopie van Winter.jpg' because it is being used by another process."

After some research I found out that when I use picterbox1.image = Drawing.Image.FromFile(path) vb apperently keeps a link to the file and keeps this file locked.

I thought about declaring a new bitmap put the image in that one and use the internal bitmap. this works fine but the problem I have then is that my tif files only display 1 page and since the program is going to be used in an envoriment where the have alot of tif files (or file like it (more than 1 page in the image file)) this is not really an option.

Anyone know how I can onluck the file so that I can delete it?
AnswerRe: Cannot delete file because it is in use by another process Pin
Colin Angus Mackay13-Jun-07 23:41
Colin Angus Mackay13-Jun-07 23:41 
GeneralRe: Cannot delete file because it is in use by another process Pin
Tom Deketelaere13-Jun-07 23:48
professionalTom Deketelaere13-Jun-07 23:48 
GeneralRe: Cannot delete file because it is in use by another process Pin
Colin Angus Mackay13-Jun-07 23:58
Colin Angus Mackay13-Jun-07 23:58 
GeneralRe: Cannot delete file because it is in use by another process Pin
Tom Deketelaere14-Jun-07 0:02
professionalTom Deketelaere14-Jun-07 0:02 
GeneralRe: Cannot delete file because it is in use by another process Pin
Colin Angus Mackay14-Jun-07 0:42
Colin Angus Mackay14-Jun-07 0:42 
GeneralRe: Cannot delete file because it is in use by another process Pin
Tom Deketelaere14-Jun-07 1:37
professionalTom Deketelaere14-Jun-07 1:37 
GeneralRe: Cannot delete file because it is in use by another process Pin
Dave Kreskowiak14-Jun-07 5:23
mveDave Kreskowiak14-Jun-07 5:23 
GeneralRe: Cannot delete file because it is in use by another process Pin
Tom Deketelaere14-Jun-07 21:12
professionalTom Deketelaere14-Jun-07 21:12 
GeneralRe: Cannot delete file because it is in use by another process Pin
Dave Kreskowiak16-Jun-07 11:48
mveDave Kreskowiak16-Jun-07 11:48 
GeneralRe: Cannot delete file because it is in use by another process Pin
Tom Deketelaere14-Jun-07 0:18
professionalTom Deketelaere14-Jun-07 0:18 
GeneralRe: Cannot delete file because it is in use by another process Pin
Colin Angus Mackay14-Jun-07 0:46
Colin Angus Mackay14-Jun-07 0:46 
QuestionCreating a patch application Pin
steve_rm13-Jun-07 23:04
steve_rm13-Jun-07 23:04 
AnswerRe: Creating a patch application Pin
Dave Kreskowiak14-Jun-07 5:20
mveDave Kreskowiak14-Jun-07 5:20 
Questionsaving clocking in and out of a employee Pin
saraswathy14313-Jun-07 22:09
saraswathy14313-Jun-07 22:09 
AnswerRe: saving clocking in and out of a employee Pin
Steven J Jowett13-Jun-07 22:20
Steven J Jowett13-Jun-07 22:20 
GeneralRe: saving clocking in and out of a employee Pin
saraswathy14314-Jun-07 23:06
saraswathy14314-Jun-07 23:06 
QuestionControl Casting Not Working Pin
Brendan Vogt13-Jun-07 22:05
Brendan Vogt13-Jun-07 22:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.