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

Visual Basic

 
AnswerRe: click event Pin
Guerven8-Aug-06 17:10
Guerven8-Aug-06 17:10 
QuestionGlobal Arrays Pin
peterzorbas8-Aug-06 6:20
peterzorbas8-Aug-06 6:20 
AnswerRe: Global Arrays Pin
peterzorbas8-Aug-06 7:06
peterzorbas8-Aug-06 7:06 
QuestionHow to put checkbox in datagrid through DataGridColoumnStyle. Pin
indiaone8-Aug-06 3:38
indiaone8-Aug-06 3:38 
AnswerRe: How to put checkbox in datagrid through DataGridColoumnStyle. Pin
Stephen McGuire8-Aug-06 7:45
Stephen McGuire8-Aug-06 7:45 
GeneralRe: How to put checkbox in datagrid through DataGridColoumnStyle. Pin
indiaone8-Aug-06 18:49
indiaone8-Aug-06 18:49 
GeneralRe: How to put checkbox in datagrid through DataGridColoumnStyle. Pin
Stephen McGuire9-Aug-06 7:24
Stephen McGuire9-Aug-06 7:24 
QuestionIOException question Pin
AntDorr8-Aug-06 3:35
AntDorr8-Aug-06 3:35 
Hi,

I'm creating an app that polls a folder (source folder) for files and moves them to another folder (destination folder). I've identified two main reasons that the move may cause an exception to be thrown.

1. The file is still being copied into the source folder by another process. Therefore the file is locked, and I need to try again later.

2. The file already exists in the destination folder.

In my catch block I need to differentiate between the two errors and handle them differently. I realise that I should perhaps be checking that the destination file does not exist before doing the move which would stop 2. happening, but it raised an interesting question for me.

What is the "proper" way do distinguish between the two errors? Obviously the IOException.message is different, but is that the way to do it?

Thanks

Ant
GeneralRe: IOException question Pin
Guffa8-Aug-06 7:29
Guffa8-Aug-06 7:29 
GeneralRe: IOException question Pin
AntDorr8-Aug-06 8:47
AntDorr8-Aug-06 8:47 
GeneralRe: IOException question Pin
Stephen McGuire8-Aug-06 12:20
Stephen McGuire8-Aug-06 12:20 
GeneralRe: IOException question Pin
AntDorr8-Aug-06 22:43
AntDorr8-Aug-06 22:43 
AnswerRe: IOException question Pin
Stephen McGuire8-Aug-06 7:34
Stephen McGuire8-Aug-06 7:34 
AnswerRe: IOException question Pin
Dave Kreskowiak8-Aug-06 16:22
mveDave Kreskowiak8-Aug-06 16:22 
GeneralRe: IOException question Pin
Mekong River8-Aug-06 21:50
Mekong River8-Aug-06 21:50 
GeneralRe: IOException question Pin
jonathan159-Aug-06 0:21
jonathan159-Aug-06 0:21 
GeneralRe: IOException question Pin
Dave Kreskowiak9-Aug-06 1:20
mveDave Kreskowiak9-Aug-06 1:20 
QuestionValidation of individual cell in datagrid Pin
hisuman1008-Aug-06 2:54
hisuman1008-Aug-06 2:54 
AnswerRe: Validation of individual cell in datagrid Pin
Stephen McGuire8-Aug-06 7:28
Stephen McGuire8-Aug-06 7:28 
GeneralRe: Validation of individual cell in datagrid Pin
hisuman1008-Aug-06 20:19
hisuman1008-Aug-06 20:19 
GeneralRe: Validation of individual cell in datagrid Pin
Stephen McGuire9-Aug-06 7:08
Stephen McGuire9-Aug-06 7:08 
QuestionHow to get USB Device ID in VB ? [modified] Pin
titusbest8-Aug-06 2:50
titusbest8-Aug-06 2:50 
Questioncrystal report deployment Pin
Pradip Kishore8-Aug-06 1:37
Pradip Kishore8-Aug-06 1:37 
AnswerRe: crystal report deployment Pin
Guerven8-Aug-06 16:42
Guerven8-Aug-06 16:42 
GeneralRe: crystal report deployment Pin
Pradip Kishore9-Aug-06 1:24
Pradip Kishore9-Aug-06 1:24 

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.