Click here to Skip to main content
15,884,986 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Can anyone Direct me to how to change Windows 'Settings' programmatically? Pin
Randor 18-Jul-18 15:02
professional Randor 18-Jul-18 15:02 
GeneralRe: Can anyone Direct me to how to change Windows 'Settings' programmatically? Pin
Dave Kreskowiak18-Jul-18 10:37
mveDave Kreskowiak18-Jul-18 10:37 
GeneralRe: Can anyone Direct me to how to change Windows 'Settings' programmatically? Pin
Member 331739318-Jul-18 11:29
Member 331739318-Jul-18 11:29 
GeneralRe: Can anyone Direct me to how to change Windows 'Settings' programmatically? Pin
Mycroft Holmes18-Jul-18 14:16
professionalMycroft Holmes18-Jul-18 14:16 
QuestionUSING FSWATCHER TO MONITOR FILES COPIED TO ALL EXTERNAL DRIVES Pin
Member 1390609010-Jul-18 22:55
Member 1390609010-Jul-18 22:55 
AnswerRe: USING FSWATCHER TO MONITOR FILES COPIED TO ALL EXTERNAL DRIVES Pin
Jochen Arndt10-Jul-18 23:49
professionalJochen Arndt10-Jul-18 23:49 
GeneralRe: USING FSWATCHER TO MONITOR FILES COPIED TO ALL EXTERNAL DRIVES Pin
Member 1390609011-Jul-18 0:15
Member 1390609011-Jul-18 0:15 
GeneralRe: USING FSWATCHER TO MONITOR FILES COPIED TO ALL EXTERNAL DRIVES Pin
Jochen Arndt11-Jul-18 0:35
professionalJochen Arndt11-Jul-18 0:35 
Most is already there. Create a list of file system watchers and add the watchers to that list:
VB
Dim watchers As New List(Of FileSystemWatcher)()

    ' In the drives loop
    Dim watchfolder As New System.IO.FileSystemWatcher()
    watchfolder.Path = strDrive
    ' Set additional properties here as already done
    watchers.Add(watchfolder)

' Stopping
For Each watchfolder In watchers
    watchfolder.EnableRaisingEvents = False
Next
It would be also a good idea to perform the initialisation only once at program start (without enabling the raise of events) and enabling the events in the start button handler (like in the above snippet for stopping).

A final tip:
If you have multiple drives I suggest to exclude the system drive (probably C:\) for testing and change files on the other drives because you will have a lot of notifications for your user directory, the project folder (when building), and the system folders (Windows background activities).
GeneralRe: USING FSWATCHER TO MONITOR FILES COPIED TO ALL EXTERNAL DRIVES Pin
Member 1390609011-Jul-18 4:07
Member 1390609011-Jul-18 4:07 
GeneralRe: USING FSWATCHER TO MONITOR FILES COPIED TO ALL EXTERNAL DRIVES Pin
Jochen Arndt11-Jul-18 7:06
professionalJochen Arndt11-Jul-18 7:06 
AnswerRe: USING FSWATCHER TO MONITOR FILES COPIED TO ALL EXTERNAL DRIVES Pin
Dave Kreskowiak11-Jul-18 3:18
mveDave Kreskowiak11-Jul-18 3:18 
GeneralRe: USING FSWATCHER TO MONITOR FILES COPIED TO ALL EXTERNAL DRIVES Pin
Member 1390609011-Jul-18 4:06
Member 1390609011-Jul-18 4:06 
GeneralRe: USING FSWATCHER TO MONITOR FILES COPIED TO ALL EXTERNAL DRIVES Pin
Dave Kreskowiak11-Jul-18 5:14
mveDave Kreskowiak11-Jul-18 5:14 
AnswerRe: USING FSWATCHER TO MONITOR FILES COPIED TO ALL EXTERNAL DRIVES Pin
mo149211-Jul-18 5:55
mo149211-Jul-18 5:55 
GeneralRe: USING FSWATCHER TO MONITOR FILES COPIED TO ALL EXTERNAL DRIVES Pin
Eddy Vluggen13-Jul-18 0:51
professionalEddy Vluggen13-Jul-18 0:51 
QuestionVisual Basic Codes 6.0 Pin
Asheeledio5-Jul-18 23:32
Asheeledio5-Jul-18 23:32 
AnswerRe: Visual Basic Codes 6.0 Pin
Richard MacCutchan5-Jul-18 23:36
mveRichard MacCutchan5-Jul-18 23:36 
AnswerRe: Visual Basic Codes 6.0 Pin
Chris Quinn5-Jul-18 23:41
Chris Quinn5-Jul-18 23:41 
AnswerRe: Visual Basic Codes 6.0 Pin
Dave Kreskowiak6-Jul-18 13:48
mveDave Kreskowiak6-Jul-18 13:48 
Questioncan't connect to finger print scanning device from windows server 2003 Pin
Meax5-Jul-18 0:36
Meax5-Jul-18 0:36 
AnswerRe: can't connect to finger print scanning device from windows server 2003 Pin
Richard Deeming5-Jul-18 1:38
mveRichard Deeming5-Jul-18 1:38 
GeneralRe: can't connect to finger print scanning device from windows server 2003 Pin
Meax5-Jul-18 8:06
Meax5-Jul-18 8:06 
Questionhow to highlight dates of Month Calendar from database windows form Pin
Meax2-Jul-18 20:01
Meax2-Jul-18 20:01 
AnswerRe: how to highlight dates of Month Calendar from database windows form Pin
Richard MacCutchan2-Jul-18 21:08
mveRichard MacCutchan2-Jul-18 21:08 
GeneralRe: how to highlight dates of Month Calendar from database windows form Pin
Meax2-Jul-18 22:19
Meax2-Jul-18 22:19 

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.