Thanks for sharing this applications and knowledge. At first I hated C#, but now I'm fascinated with Visual Studio and C# power! This is awesome!
@LearnWithHuw Жыл бұрын
Thanks. Have fun programming it!
@everydaystoic196 Жыл бұрын
Excellent explanation Huw! Excited about the next video!!
@karolajoj_pl Жыл бұрын
Great video, it helped me a lot! However, I noticed a small bug in the code. In the method 'treeView_BeforeExpand' when expanding the tree nodes, the sub-elements get duplicated. To resolve this issue, you can add a simple if statement before the line 'AddDirs(node);' like this: if (tn.Nodes.Count == 0) AddDirs(tn); This will prevent duplicate sub-elements from being added. Keep up the good work!
@LearnWithHuw Жыл бұрын
Thanks for the comment. Yes, you are quite right. I have a far more complicated TreeView project (written in Object Pascal/Delphi) which goes into all these sorts of issues in more depth. You can find it in my playlists. If I come back to the C# File Explorer (which I probably will soon, as there are a few other projects I have that it may be used for), I'll try to remember to spend time on doing more checks and optimisations. Best wishes. Huw
@LearnWithHuw Жыл бұрын
Incidentally, it's worth pointing out that my code only shows the very basics of file browsing with C#. It does not, for example, deal with changes made to files and directories by other applications (e.g. adding, deleting or renaming using the Windows File Explorer). So be careful about "over optimizing" code. In fact, a good case could be made for doing far more "recreation" of nodes when browsing to ensure that everything is up to date with changes that may have been made by other applications.
@GaryChike Жыл бұрын
Great content Huw🎉 Keep ‘em comin‘ !
@LearnWithHuw Жыл бұрын
Thanks, Gary. Lots more to come in the new year!
@GaryChike Жыл бұрын
@@LearnWithHuw Looking forward to it 🚀
@__hannibaalbarca__ Жыл бұрын
Good , I like to make in Console mode with c and c++.