Click here to Skip to main content
15,890,438 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: vb.net DataView.RowFilter not working Pin
Tej Aj7-Apr-10 20:08
Tej Aj7-Apr-10 20:08 
Questionprogress bar Pin
Daniel Engelkes6-Apr-10 17:03
Daniel Engelkes6-Apr-10 17:03 
AnswerRe: progress bar Pin
Anubhava Dimri6-Apr-10 19:45
Anubhava Dimri6-Apr-10 19:45 
AnswerRe: progress bar Pin
KreativeKai7-Apr-10 7:18
professionalKreativeKai7-Apr-10 7:18 
GeneralRe: progress bar Pin
Steven J Jowett7-Apr-10 22:54
Steven J Jowett7-Apr-10 22:54 
GeneralRe: progress bar Pin
KreativeKai9-Apr-10 6:05
professionalKreativeKai9-Apr-10 6:05 
AnswerRe: progress bar Pin
Gregory Gadow7-Apr-10 7:49
Gregory Gadow7-Apr-10 7:49 
Questionbecause it is being used by another process Pin
KreativeKai6-Apr-10 7:56
professionalKreativeKai6-Apr-10 7:56 
In my program I create a file using:

dim strFileName as string = "c:\test.txt"
File.Create(My.Settings.strFileName)

I'm just using the file as a basic reference that the program is running and while this file exists don't try and start another instance of the program. I don't use the file or add to it or anything.

Later I try to delete the file using:

File.Delete(My.Settings.strFileName)

I've also tried Kill(My.Settings.strFileName)

Unfortunately I get this error:

The process cannot access the file 'c:\test.txt' because it is being used by another process.

I understand the error, but how do I get the program to let go after I create it so I can delete it later?

Confused | :confused:
Lost in the vast sea of .NET

AnswerRe: because it is being used by another process Pin
Kschuler6-Apr-10 8:34
Kschuler6-Apr-10 8:34 
GeneralRe: because it is being used by another process Pin
KreativeKai6-Apr-10 9:21
professionalKreativeKai6-Apr-10 9:21 
AnswerRe: because it is being used by another process Pin
Gregory Gadow6-Apr-10 9:07
Gregory Gadow6-Apr-10 9:07 
GeneralRe: because it is being used by another process Pin
KreativeKai6-Apr-10 9:16
professionalKreativeKai6-Apr-10 9:16 
GeneralRe: because it is being used by another process [modified] Pin
Dave Kreskowiak6-Apr-10 10:06
mveDave Kreskowiak6-Apr-10 10:06 
GeneralRe: because it is being used by another process Pin
KreativeKai7-Apr-10 6:22
professionalKreativeKai7-Apr-10 6:22 
Questionfilesystemwatcher and linux Pin
wikus706-Apr-10 3:54
wikus706-Apr-10 3:54 
AnswerRe: filesystemwatcher and linux Pin
Dave Kreskowiak6-Apr-10 4:09
mveDave Kreskowiak6-Apr-10 4:09 
GeneralRe: filesystemwatcher and linux Pin
wikus706-Apr-10 4:19
wikus706-Apr-10 4:19 
GeneralRe: filesystemwatcher and linux Pin
Dave Kreskowiak6-Apr-10 7:12
mveDave Kreskowiak6-Apr-10 7:12 
GeneralRe: filesystemwatcher and linux Pin
wikus706-Apr-10 20:00
wikus706-Apr-10 20:00 
GeneralRe: filesystemwatcher and linux Pin
Dave Kreskowiak7-Apr-10 2:03
mveDave Kreskowiak7-Apr-10 2:03 
AnswerRe: filesystemwatcher and linux Pin
Steven J Jowett7-Apr-10 2:01
Steven J Jowett7-Apr-10 2:01 
QuestionHow to Total Shared Variable in Crystal Report Pin
.NET- India 5-Apr-10 23:55
.NET- India 5-Apr-10 23:55 
AnswerRe: How to Total Shared Variable in Crystal Report Pin
Anubhava Dimri7-Apr-10 19:21
Anubhava Dimri7-Apr-10 19:21 
QuestionListbox Values in [modified] Pin
Anubhava Dimri5-Apr-10 21:43
Anubhava Dimri5-Apr-10 21:43 
AnswerRe: Listbox Values in Pin
Steven J Jowett5-Apr-10 21:46
Steven J Jowett5-Apr-10 21:46 

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.