Click here to Skip to main content
16,020,622 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
nikhilhegde00717-Aug-10 21:40
nikhilhegde00717-Aug-10 21:40 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Andraw Tang18-Aug-10 4:27
Andraw Tang18-Aug-10 4:27 
QuestionFile.Delete Method Pin
98fireblade17-Aug-10 5:08
98fireblade17-Aug-10 5:08 
AnswerRe: File.Delete Method Pin
David Mujica17-Aug-10 5:22
David Mujica17-Aug-10 5:22 
GeneralRe: File.Delete Method Pin
98fireblade17-Aug-10 5:29
98fireblade17-Aug-10 5:29 
AnswerRe: File.Delete Method Pin
dan!sh 17-Aug-10 5:39
professional dan!sh 17-Aug-10 5:39 
GeneralRe: File.Delete Method Pin
98fireblade17-Aug-10 5:42
98fireblade17-Aug-10 5:42 
AnswerRe: File.Delete Method Pin
Luc Pattyn17-Aug-10 5:52
sitebuilderLuc Pattyn17-Aug-10 5:52 
98fireblade wrote:
catch ex as exception
msgbox("Unable to Delete File!")
end try


this is stupid. There is an exception that typically holds a lot of information, but what the heck, you know best and replace it by a simple sentence providing no clue to the user at all.
Always output Exception.ToString() to either the user or at least a log file, have a look at it, and probably find what is going on.


98fireblade wrote:
no the file does not appear to be in use


That is a conjecture, not a fact. Proof it right or wrong.



98fireblade wrote:
in one particular folder


if one folder is special, maybe telling us the path, and/or whatever you have done to its security, could help us help you. And do tell us what Operating System you're on, it may provide a clue.


And here for the surprise: if all else fails, add some code to try delete, wait 5 seconds, and try delete again.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: File.Delete Method Pin
98fireblade17-Aug-10 6:34
98fireblade17-Aug-10 6:34 
GeneralRe: File.Delete Method Pin
Eddy Vluggen17-Aug-10 8:55
professionalEddy Vluggen17-Aug-10 8:55 
AnswerRe: File.Delete Method Pin
Dave Kreskowiak17-Aug-10 6:22
mveDave Kreskowiak17-Aug-10 6:22 
GeneralRe: File.Delete Method Pin
98fireblade17-Aug-10 7:11
98fireblade17-Aug-10 7:11 
GeneralRe: File.Delete Method Pin
98fireblade17-Aug-10 8:30
98fireblade17-Aug-10 8:30 
GeneralRe: File.Delete Method Pin
ChandraRam18-Aug-10 2:48
ChandraRam18-Aug-10 2:48 
QuestionMathmL control for math operations [modified] Pin
selpra17-Aug-10 1:40
selpra17-Aug-10 1:40 
AnswerRe: MathmL control for math operations Pin
Richard MacCutchan17-Aug-10 2:05
mveRichard MacCutchan17-Aug-10 2:05 
QuestionPDF creating Pin
JR21217-Aug-10 1:38
JR21217-Aug-10 1:38 
AnswerRe: PDF creating Pin
Dave Kreskowiak17-Aug-10 3:32
mveDave Kreskowiak17-Aug-10 3:32 
GeneralRe: PDF creating Pin
JR21217-Aug-10 3:35
JR21217-Aug-10 3:35 
GeneralRe: PDF creating Pin
JR21219-Aug-10 21:46
JR21219-Aug-10 21:46 
Questionhow to work with webcams or video for face recognition under vb Pin
droidman16-Aug-10 10:23
droidman16-Aug-10 10:23 
AnswerRe: how to work with webcams or video for face recognition under vb Pin
David Mujica16-Aug-10 10:37
David Mujica16-Aug-10 10:37 
GeneralRe: how to work with webcams or video for face recognition under vb Pin
droidman16-Aug-10 11:17
droidman16-Aug-10 11:17 
GeneralDxSnap Pin
David Mujica17-Aug-10 4:54
David Mujica17-Aug-10 4:54 
GeneralRe: DxSnap Pin
droidman17-Aug-10 7:35
droidman17-Aug-10 7:35 

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.