I have a FileSystemWatcher
which triggers an OnCreated
Event when a new Directory is created. But the directories name is always the default name(newDirectory(1)).
Is there a possibility to wait until the directories name is confirmed? (the users focus gets out of the ordners name textbox)
You cant directly hook both the creation and naming of folder (which is obviously two events). Instead you can create your own customized class in which you can achieve the goal. Here is the sample code:
This class usage will be something like this: