Click here to Skip to main content
15,843,498 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Hide a listView column Pin
jcrussell10-May-06 19:45
jcrussell10-May-06 19:45 
QuestionWHERE IS the ListSubItems Icon property ?? Pin
mounirbraham9-May-06 14:52
mounirbraham9-May-06 14:52 
QuestionControlling FileSystemWatcher Pin
Wrongway43219-May-06 11:44
Wrongway43219-May-06 11:44 
AnswerRe: Controlling FileSystemWatcher Pin
DSAlbin21-May-06 8:41
DSAlbin21-May-06 8:41 
GeneralRe: Controlling FileSystemWatcher Pin
Wrongway432123-May-06 13:17
Wrongway432123-May-06 13:17 
GeneralRe: Controlling FileSystemWatcher Pin
DSAlbin23-May-06 14:17
DSAlbin23-May-06 14:17 
GeneralRe: Controlling FileSystemWatcher Pin
Wrongway432124-May-06 11:55
Wrongway432124-May-06 11:55 
GeneralRe: Controlling FileSystemWatcher Pin
DSAlbin24-May-06 13:22
DSAlbin24-May-06 13:22 
Hi again Dave,

Here's another way to define the .NotifyFilters property that performs well:

wf.NotifyFilter = 0
wf.NotifyFilter = mw.NotifyFilter Or NotifyFilters.FileName

It handles calling the wf.created, wf.deleted, wf.changed, and wf.renamed events in a surprisinly logical way. Here is the action - logic table:

Action: Triggers
drag/drop a file into the watched directory wf.Created
drag/drop a file onto an existing file in the directory wf.Deleted and wf.Created
drag a file out of the watched directory wf.Deleted
stream a file into the watched directory wf.Created
copy and paste a file into the watched directory wf.Created
Right-click and "Delete" a file in the directory wf.Deleted


Your suggestion of just using wf.NotifyFilter= IO.NotifyFilters.LastAccess also gives single event triggers but doesn't trigger for some actions.

Action: Triggers
drag/drop a file into the watched directory wf.Changed
drag/drop a file onto an existing file in the directory wf.Changed
drag a file out of the watched directory <no triggers="">
stream a file into the watched directory wf.Changed
copy and paste a file into the watched directory <no triggers="">
Right-click and "Delete" a file in the directory <no triggers="">

I didn't care much for the combination of IO.NotifyFilters.LastAccess OR IO.NotifyFilters.Filename as the logic table yielded too many "multiple" events:

Action: Triggers
drag/drop a file into the watched directory wf.Created then wf.Changed
drag/drop a file onto an existing file in the directory wf.Deleted then wf.Created then wf.Changed
drag a file out of the watched directory wf.Deleted
stream a file into the watched directory wf.Created
copy and paste a file into the watched directory wf.Created
Right-click and "Delete" a file in the directory wf.Deleted

Well,...at this point,..I'm feeling a little better about how to use this object. Thanks for the exchange of information. It was very useful!

-Dave Wink | ;)
QuestionDataGrid Control Pin
Quecumber2569-May-06 11:27
Quecumber2569-May-06 11:27 
Questionhandler problem Pin
meconomou9-May-06 9:18
meconomou9-May-06 9:18 
Questioncombo box Data source Nothing Problem Pin
Hkothari779-May-06 9:02
Hkothari779-May-06 9:02 
AnswerRe: Data source Still Nothing Problem Pin
Hkothari779-May-06 9:04
Hkothari779-May-06 9:04 
QuestionHow to cut part of the piture in a picture box Pin
Murtuza Husain Miyan Patel9-May-06 8:58
professionalMurtuza Husain Miyan Patel9-May-06 8:58 
AnswerRe: How to cut part of the piture in a picture box Pin
Christian Graus9-May-06 11:39
protectorChristian Graus9-May-06 11:39 
QuestionAdding nodes to a treeview control Pin
Raistlin21_459-May-06 8:25
Raistlin21_459-May-06 8:25 
AnswerRe: Adding nodes to a treeview control Pin
digicd19-May-06 17:22
digicd19-May-06 17:22 
GeneralRe: Adding nodes to a treeview control Pin
Raistlin21_4510-May-06 7:01
Raistlin21_4510-May-06 7:01 
AnswerRe: Adding nodes to a treeview control Pin
Hacknight949-May-06 21:37
Hacknight949-May-06 21:37 
GeneralRe: Adding nodes to a treeview control Pin
Raistlin21_4510-May-06 7:05
Raistlin21_4510-May-06 7:05 
GeneralRe: Adding nodes to a treeview control Pin
Hacknight9410-May-06 15:15
Hacknight9410-May-06 15:15 
GeneralRe: Adding nodes to a treeview control Pin
Hacknight9410-May-06 15:21
Hacknight9410-May-06 15:21 
Questionfrom ADO to ADO.NET 2.0 Pin
Gulfraz Khan9-May-06 7:11
Gulfraz Khan9-May-06 7:11 
QuestionHandling Complex Numbers Pin
crtwrght_mrk9-May-06 7:09
crtwrght_mrk9-May-06 7:09 
AnswerRe: Handling Complex Numbers Pin
darkelv9-May-06 7:25
darkelv9-May-06 7:25 
QuestionRe: Handling Complex Numbers Pin
crtwrght_mrk9-May-06 10:34
crtwrght_mrk9-May-06 10:34 

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.