Simple File Manager Using Visual C# . NET

  Рет қаралды 30,709

SnatchDreams

SnatchDreams

Күн бұрын

Пікірлер: 88
@bentko
@bentko 2 жыл бұрын
Thank you. It is a very explainable tutorial for C# file system.
@mikusz3
@mikusz3 4 жыл бұрын
Oh boy, I just can't wait to "remake" the Volkov/Norton Commander on Visual Studio. That'd be awesome.
@SnatchDreams
@SnatchDreams 3 жыл бұрын
That's cool 😎
@JohnnySix
@JohnnySix 3 жыл бұрын
This was very cool, really like the explanation of the image-list for the icons. It'd be cool if windows forms had a control out-the-box though. :)
@SnatchDreams
@SnatchDreams 2 жыл бұрын
happy that you liked it :)
@Hai-v1w
@Hai-v1w 11 ай бұрын
How did you get that icon pack?
@SnatchDreams
@SnatchDreams 11 ай бұрын
I used free resources from flaticon.com
@annaovchinnikova3303
@annaovchinnikova3303 Жыл бұрын
How to create delete, rename, remove buttons for files and folders in this example? and a box where i can search files or folders using name or extension?
@johanvancoppenhagen2795
@johanvancoppenhagen2795 3 жыл бұрын
Very informative. Thanks for taking the time to make this video. How easy would it be to add a search function to this?
@SnatchDreams
@SnatchDreams 3 жыл бұрын
To find files? Yes it's kinda easy to implement
@jackofalltrades1249
@jackofalltrades1249 4 ай бұрын
Hi Is this also possible in c# WPF? do you have any tutorial for WPF? Thank you!
@avectresormt
@avectresormt 3 жыл бұрын
Hello , where to get those icons 20:43
@SnatchDreams
@SnatchDreams 2 жыл бұрын
most of them are from flaticon.com
@DogeCharger
@DogeCharger 3 жыл бұрын
Very useful tutorial! I'm working on an AES File Safe program using C# and was wondering how I could display a directory and show the files within. Thanks!
@shreyashmutyalwar
@shreyashmutyalwar 3 жыл бұрын
Damn, i was thinking of that too
@SnatchDreams
@SnatchDreams 3 жыл бұрын
Glad it was helpful!😍
@ankushj4129
@ankushj4129 Жыл бұрын
I have done this exactly like it is in the video, but the pdf files cannot be opened, plz suggest me
@SnatchDreams
@SnatchDreams Жыл бұрын
Please let me know the error that you are getting while trying to open pdf files. Please share details via mail Or reply to this comment. I hope u have an pdf reader installed on ur windows.
@lestermanguiat4463
@lestermanguiat4463 4 жыл бұрын
It is for external storage only?
@swixx8910
@swixx8910 3 жыл бұрын
when he put D: you can change it to whatever your main drive is d is usally a usb or something like thay C is a ssd and E is a hdd
@SnatchDreams
@SnatchDreams 3 жыл бұрын
You could put any drive.. I didn't use C: because it requires the app to ran an administrator
@SnatchDreams
@SnatchDreams 3 жыл бұрын
D drive is my second partition related to work 😇 and u answered correctly for his question bro thank you 😍
@xandro8309
@xandro8309 3 жыл бұрын
Why in the function goBack() you didn't use the path = Path.Combine(path,"@..\\")
@lechampi2237
@lechampi2237 3 жыл бұрын
I really liked your video on the file manager but I have a problem is that nothing is executed when I code maybe Because I have a hard drive E: instead of D: .
@БезумныйПетя
@БезумныйПетя Жыл бұрын
NotSupportedException. In this FileAttributes fileAttr = File.GetAttributes(filePath + "/" + currentlySelectedItemName); I don't know why Visual Studio get me this error System.NotSupportedException: "This path format is not supported."
@wojtekgame
@wojtekgame 3 жыл бұрын
Will you add a part 2 of the VB one to make more icons and making it openable in places
@SnatchDreams
@SnatchDreams 3 жыл бұрын
I will try to do one bro 😊
@wojtekgame
@wojtekgame 3 жыл бұрын
@@SnatchDreams (it will be openable in notepad and edge)
@SnatchDreams
@SnatchDreams 3 жыл бұрын
U mean when u double click the file? The process or application in which the file is to be open is completed decided by Windows not by us.. So if u double click a txt file it would open in notepad or ur default text editor .. Same with other extensions
@wojtekgame
@wojtekgame 3 жыл бұрын
@@SnatchDreams Yes and with a open in box if it's like a .txt file or .url files and they show icons than a paper icon
@SnatchDreams
@SnatchDreams 3 жыл бұрын
Icons can be customized and even we show the icons that actually windows uses for those extension itself... For the tutorial simplicity I limited it to few custom icons
@le_Bizarre
@le_Bizarre 2 жыл бұрын
Thanks. Is it possible to do the same with the newer .NET instead of of the .NET framework?
@SnatchDreams
@SnatchDreams 2 жыл бұрын
Sorry bro Didn't understand ur question
@le_Bizarre
@le_Bizarre 2 жыл бұрын
@@SnatchDreams At the beginning of the video you started a .NET framework project, but now we have .NET 6 framework, so can we use the same code?
@SnatchDreams
@SnatchDreams 2 жыл бұрын
Yes bro you should be able to use the same code.. If find any functions got deprecated kindly let me know 😇 I will be happy to help u with
@anjalisaxena1154
@anjalisaxena1154 2 жыл бұрын
I tried the code u explained in first 11 mins and executed but not showing any list of directories in listView.... what cud be the issue as i followed the same steps and code that you explained.
@SnatchDreams
@SnatchDreams 2 жыл бұрын
Could share a code snippet of urs
@anjalisaxena1154
@anjalisaxena1154 2 жыл бұрын
@@SnatchDreams using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.IO; using System.Diagnostics; using System.Threading.Tasks; using System.Windows.Forms; namespace File_Manager { public partial class Form1 : Form { private string filePath = "D:"; private bool isFile = false; private string currentlySelectedItemName = ""; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { TxtFilePath.Text = filePath; loadFilesAndDirectoies(); } public void loadFilesAndDirectoies() { DirectoryInfo fileList; try { fileList = new DirectoryInfo(filePath); FileInfo[] files = fileList.GetFiles();// GETS ALL THE FILES DirectoryInfo[] dirs = fileList.GetDirectories();// GET ALLT THE DIRECTORIES for (int i = 0; i < files.Length; i++) { listView1.Items.Add(files[i].Name); } for (int i = 0; i < dirs.Length; i++) { listView1.Items.Add(dirs[i].Name); } } catch (Exception e) { } } public void loadButtonAction() { filePath = TxtFilePath.Text; loadFilesAndDirectoies(); isFile = false; } private void BtnGo_Click(object sender, EventArgs e) { loadButtonAction(); } private void listView1_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e) { currentlySelectedItemName = e.Item.Text; } } }
@SnatchDreams
@SnatchDreams 2 жыл бұрын
Hi ji could u send the same snippet over mail snatchdreams@gmail.com. and before that try adding a print statement to print the length of dirs and files array also add a print statement inside the catch block to see of any exception is happening. We discussion this over email.. Going through such a big snippet over comments is quite difficult 😇 thank you
@anjalisaxena1154
@anjalisaxena1154 2 жыл бұрын
@@SnatchDreams sorted out as i did not specify "Form1_Load in Load Event".. thanks
@SnatchDreams
@SnatchDreams 2 жыл бұрын
Happy it worked 😇 thanks for letting me know
@AmanKumar-bi4jl
@AmanKumar-bi4jl 3 жыл бұрын
Sir, can i view images using this approach?
@SnatchDreams
@SnatchDreams 3 жыл бұрын
Yes bro we can.. U mean thumbnail preview right?
@AmanKumar-bi4jl
@AmanKumar-bi4jl 3 жыл бұрын
@@SnatchDreams yes, But thumbnail preview is not good for large amount of data, whan i load thousand plus large size image then it throw out of memory exception, also rotate potrait image in landscape . Are you have any solution for this?
@SnatchDreams
@SnatchDreams 3 жыл бұрын
Instead of loading everything manually actually we can directly use the thumbnail used by windows instead of having a custom icons that we use.. I will try to share the code for that in one or two days please send a mail
@AmanKumar-bi4jl
@AmanKumar-bi4jl 3 жыл бұрын
@@SnatchDreams Sir, I basically want to create image gallery with check box
@diyhub2986
@diyhub2986 Жыл бұрын
This is Amazing! the tutorial is very clear! +1. Btw. is it possible to filter the files that you want to view? ex. only MP3 files will be listed in listview. Thank you so much!
@kacchanmissions2628
@kacchanmissions2628 4 жыл бұрын
May I ask how to define the File Type? Because the one showing in the File Type is File extension. Nice videooo!
@SnatchDreams
@SnatchDreams 3 жыл бұрын
Thank you bro 😍 .. Could u make ur question more clear so I could help u out if u are still stuck.. Sorry about late reply
@ElektrischInkorrekt
@ElektrischInkorrekt 8 ай бұрын
Have to do some research. With the parts I copied into my project it didn't work yet. (It didn't open the D:\ - Directory, instead it opened the Debug-Path)
@ElektrischInkorrekt
@ElektrischInkorrekt 8 ай бұрын
Nevermind. This seems to work as intended. If you don't enter the correct string, the function will try to generate a relative path starting from the project-root-Direktory (e.g. the Debug-Path). I was needing the backslash and needed a ten year old stackoverflow-question to solve it.
@serhanguney492
@serhanguney492 4 жыл бұрын
I just installed VS 2019 to my MacBook and I'm a beginner. Looked everywhere and researched over an hour but I can't find the designer page hence can not create a form. Can you please help me ?
@f1shyv1shy35
@f1shyv1shy35 4 жыл бұрын
Serhan Guney VS 2019 for MacBooks is not for developing windows applications.
@robylplays
@robylplays 3 жыл бұрын
visual studio on mac isn't for developing windows applications you should go check other mac apps
@ahmadshada9867
@ahmadshada9867 4 жыл бұрын
Hi bro thank you so much ,i need to ask you ,about i can't show user folder such as User directory in C drive in my tree view that's i digging recursively on it please help me
@payback2crashes
@payback2crashes 4 жыл бұрын
right click on your project, click on add and create an application.manifest file in your project and then go to RequestedExecutionLevel then, change the asInvoker to highestAvailable and that should be it. It will auto run as the highest permissions an app can have in windows.
@fade3302
@fade3302 5 жыл бұрын
Lessgo 🔥🔥
@SnatchDreams
@SnatchDreams 5 жыл бұрын
yeeeeeeeee
@jithinmv6516
@jithinmv6516 5 жыл бұрын
Professor paul :)
@sanainamdar3092
@sanainamdar3092 3 жыл бұрын
Hi.can you develop file manager in aap.net mvc c#
@SnatchDreams
@SnatchDreams 3 жыл бұрын
U mean ASP. Net 😇
@jerome1471
@jerome1471 4 жыл бұрын
my teacher doesn't know how to code so she told us to go here.
@SnatchDreams
@SnatchDreams 3 жыл бұрын
😇
@bloodmoonsolareclipse
@bloodmoonsolareclipse 3 жыл бұрын
9:46 Gullable
@jahaandaryanani2830
@jahaandaryanani2830 4 жыл бұрын
For me Process.Start() doesnt work
@kayrakocak9827
@kayrakocak9827 4 жыл бұрын
I'm in the same trouble
@SnatchDreams
@SnatchDreams 4 жыл бұрын
What exactly is the error shown .. could you inbox me the screen shot of the error
3 жыл бұрын
put ; at the end
@BoxcarRider46
@BoxcarRider46 Жыл бұрын
​@@SnatchDreams it doesn't open the file
@bloodmoonsolareclipse
@bloodmoonsolareclipse 3 жыл бұрын
7:59
@themyaerikou4366
@themyaerikou4366 2 жыл бұрын
Ounded birds episode 55 with greek subtiles
@cilginpro8882
@cilginpro8882 4 жыл бұрын
file path text box error
@Core034
@Core034 3 жыл бұрын
Noo I making programs in c++
@SnatchDreams
@SnatchDreams 3 жыл бұрын
Great 🤩 Happy Coding
@Core034
@Core034 3 жыл бұрын
@@SnatchDreams thanks!
@ednamusa8539
@ednamusa8539 4 жыл бұрын
Need help pliz
@ednamusa8539
@ednamusa8539 4 жыл бұрын
How can I create a desktop chat application using c# in visual studio...showing active users,create group .. something just like watsapp
@SnatchDreams
@SnatchDreams 4 жыл бұрын
Hiii .. I its too big project to do.. If i could get all your support . I will start making the videos for the part by part..
@marak-pc-project2573
@marak-pc-project2573 4 жыл бұрын
Please source code
@SnatchDreams
@SnatchDreams 4 жыл бұрын
Sorry for the inconvenience .. I have added to source code link in the description
@maskedredstonerproz
@maskedredstonerproz 4 жыл бұрын
source code plzzz!!
@SnatchDreams
@SnatchDreams 4 жыл бұрын
I have added the source to github repo and put the link to in the description
@maskedredstonerproz
@maskedredstonerproz 4 жыл бұрын
@@SnatchDreams thanks
Create a Simple HTTP Server | Visual C#.NET
23:17
SnatchDreams
Рет қаралды 18 М.
Simple File Manager Using VB.NET
11:42
SnatchDreams
Рет қаралды 20 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Estudando & Instalando algumas Bibliotecas Python
1:24:43
Dimensão Alfa
Рет қаралды 44
Working With The File System in C# - Managing Folders and Files
35:07
C# CustomList Using UserControl And FlowLayoutPanel
21:37
Chieng
Рет қаралды 121 М.
Animate Images Using Timer | Visual C#.NET
6:18
SnatchDreams
Рет қаралды 6 М.
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 734 М.
What is mathematical thinking actually like?
9:44
Benjamin Keep, PhD, JD
Рет қаралды 9 М.
France l can you solve?? l Olympiad Math Exponential Problem
10:17
Finally Revealing My Idea: AI SaaS from Scratch
16:57
Chinmay Anand
Рет қаралды 58
KI Tools, die du für 2025 kennen solltest
5:40
Shakeela ZQ
Рет қаралды 32
Math Olympiad Problem | Geendle
12:46
Geendle
Рет қаралды 169
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН