Click here to Skip to main content
15,902,909 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to show flexgrid control on toolbox? Pin
Dave Kreskowiak26-Jun-06 17:36
mveDave Kreskowiak26-Jun-06 17:36 
QuestionIntegration... Pin
d24k104d26-Jun-06 15:07
d24k104d26-Jun-06 15:07 
AnswerRe: Integration... Pin
Dave Kreskowiak26-Jun-06 17:34
mveDave Kreskowiak26-Jun-06 17:34 
AnswerRe: Integration... Pin
Paul Conrad26-Jun-06 18:40
professionalPaul Conrad26-Jun-06 18:40 
QuestionOpenGL Pin
spelltwister26-Jun-06 11:08
spelltwister26-Jun-06 11:08 
AnswerRe: OpenGL Pin
Jun Du27-Jun-06 5:02
Jun Du27-Jun-06 5:02 
QuestionDirectory List/File Busy Pin
Scott_Roberts26-Jun-06 8:19
Scott_Roberts26-Jun-06 8:19 
AnswerRe: Directory List/File Busy [modified] Pin
Dave Kreskowiak26-Jun-06 8:52
mveDave Kreskowiak26-Jun-06 8:52 
STemaat wrote:
If the program starts and there are already files in the directory, I want it to work through the file list one at a time and process the files appropriately.


OK, what's the big deal? Use the Directory class and it's GetFiles method to get a list of files in the directory and start feeding them to whatever routine you've written to process the files.


STemaat wrote:
Sometimes the file is transferred in via FTP so it fires multiple change notifications. I want to ignore them until the transfer is done.


There is no Closed notification in the FileSystemWatcher. It's impossible for it to know when another application is completely finished with a file before it notifies you. You're only workaround is to, every so often, try and open the file with exclusive rights (DenyShareRead and DenyShareWrite). Once the file successfully opens, you've got a pretty good indicator of whether or not the file is done being written by the FTP server. This, of course, depends entirely on the functionality of the FTP Server that you're using and how it writes to files as they're being uploaded.


Dave Kreskowiak
Microsoft MVP - Visual Basic



-- modified at 14:52 Monday 26th June, 2006
GeneralRe: Directory List/File Busy Pin
Scott_Roberts26-Jun-06 8:59
Scott_Roberts26-Jun-06 8:59 
GeneralRe: Directory List/File Busy Pin
Dave Kreskowiak26-Jun-06 9:07
mveDave Kreskowiak26-Jun-06 9:07 
GeneralRe: Directory List/File Busy Pin
Scott_Roberts26-Jun-06 9:16
Scott_Roberts26-Jun-06 9:16 
GeneralRe: Directory List/File Busy Pin
Dave Kreskowiak27-Jun-06 1:29
mveDave Kreskowiak27-Jun-06 1:29 
GeneralRe: Directory List/File Busy Pin
Scott_Roberts26-Jun-06 12:59
Scott_Roberts26-Jun-06 12:59 
Questioncontrolling playback speed of audio files. Pin
mkm300526-Jun-06 7:41
mkm300526-Jun-06 7:41 
AnswerRe: controlling playback speed of audio files. Pin
Dave Kreskowiak26-Jun-06 8:47
mveDave Kreskowiak26-Jun-06 8:47 
QuestionHow do I use Select Case on checkboxes in a Groupbox control? Pin
Rashar26-Jun-06 6:34
Rashar26-Jun-06 6:34 
AnswerRe: How do I use Select Case on checkboxes in a Groupbox control? Pin
Dave Kreskowiak26-Jun-06 8:45
mveDave Kreskowiak26-Jun-06 8:45 
Questionhow can i convert vb6 source file to vb.net 2003 file Pin
saneng26-Jun-06 6:24
saneng26-Jun-06 6:24 
AnswerRe: how can i convert vb6 source file to vb.net 2003 file Pin
Dave Kreskowiak26-Jun-06 8:35
mveDave Kreskowiak26-Jun-06 8:35 
QuestionHow can I convert VB6 to VB.NET2003 Pin
Adekolurejo26-Jun-06 6:10
Adekolurejo26-Jun-06 6:10 
AnswerRe: How can I convert VB6 to VB.NET2003 Pin
Dave Kreskowiak26-Jun-06 8:30
mveDave Kreskowiak26-Jun-06 8:30 
QuestionVBScript to split file path into 3 bits Pin
mil_an26-Jun-06 5:43
mil_an26-Jun-06 5:43 
AnswerRe: VBScript to split file path into 3 bits [modified] Pin
Dave Kreskowiak26-Jun-06 8:33
mveDave Kreskowiak26-Jun-06 8:33 
GeneralRe: VBScript to split file path into 3 bits Pin
mil_an28-Jun-06 0:47
mil_an28-Jun-06 0:47 
Questionslovenian codepage Pin
Marc Soleda26-Jun-06 4:46
Marc Soleda26-Jun-06 4: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.