Hey Guys, Your suggestions are welcome for next video. If you guys want me to add more functionalities to the File Explorer then hit the like and subscribe buttons and let me know in the comment below. Also don't forget to Like, Subscribe & Share this video. Click here to Subscribe Now: czcams.com/channels/k2GyexoK16XiKkrXLD_O2Q.html Join now to unlock custom emojis by me and get loyalty badges next to your name in comments and live chat: czcams.com/channels/k2GyexoK16XiKkrXLD_O2Q.htmljoin Become my patron to get early access to my videos and instantly unlock all the source codes. Patreon: www.patreon.com/join/jdscodelab/checkout?rid=5733953 ☕Buy me a Coffee: www.buymeacoffee.com/jdscodelab
Hey @JD's Code Lab: If you could add "Rename Multiple Items at Once" and "Create Multiple Files and Folders at Once" functionalities, it would be very nice and helpful functions.
Just started learning WPF and your channel seems incredible. Everything is so professional. I thought that you have 2.74M subscribers, hope you get them in a blink of eye :)
Thank you so much Gotycki. 2.74M is a long way to go. I would've crossed 5k till now if all the viewers had subscribed my channel. More than 30% of my viewers ain't subscribed yet. Lets hope what you said comes true🤩😃
Thank you very much for your videos, appreciate your work. I have questions (sorry if it sounds like noob or intuitive questions): - Am I able to build a file explorer (functionally work) like yours, if I follow the two video parts? - If I want to use WinForms as UI, am I still be able to build the software (if I follow your videos)? (I consider myself as beginner and the WinForms I think it is much easier for a beginner)? If the answer is yes, are there things that I have to know before start coding (using WinForms as UI)? (Because you know I lack experience and knowledge and I want to know if there is something I should know before start coding, to save time not doing wrong thing from the start). Thank you in advance.
Hey Falcon, Glad you asked the question. #1. Yes, you'll be able to develop the File Explorer with all the functionalities as presented in my videos by following both the parts. #2. Yes, you'll be able to develop the WinForm app following my videos as the code behind. Regarding the UI design, I find WPF much flexible than WinForms. #3. I would suggest you to start with basic understandings and try to build small apps first such as a calculator app etc. There are alot of video series on CZcams regarding the basics. My favourite is Mr. Tim Corey. I wish you luck.
@@JDsCodeLab I am grateful to you, your answer gave me motivation and hope in practicing programming. I totally agree with you that WPF is more flexible (no doubt in that but at the same time it need more knowledge and effort). I already went through the basics and I know some concepts of OOP (but this background still not solid) however I still consider myself as beginner, because I lack a lot in the practical side (I need to practice as you suggest). Tim Corey he is one of my favorite also, he is amazing, the way he teach and demonstrating things is so brilliant. Do you know someone else who is doing the same way as Tim does (either in CZcams or any other platforms and it is valuable content, especially if it is practical things as projects)? mention them please. (The main point here is: the way of doing and explaining the process of building the project if it is same as Tim's way it will be better but no problem if it is different (Tim's way is more preferable)).
Thank you for your effort. I have a question. How to get adressBars text the adress of a folder or file when we click only one time? in your video, when you access files of folder, it only writes folders location.
In my FileDetailsModel file i have already added a property for accessing the path of that selected file. You can get it by: string filePath = myfile.Path;
Hello, I hope your channel will be very useful. I want to make a wpf application. It will be activated at Windows startup and a picture will fill the screen. And the music I want will play. I will completely adjust the volume of the sound. The picture will stay on the screen within the time I set. When the picture is gone, the music will end. Can you give your opinion on this issue?
1) To run your application on Windows startup you have to set the registry key value like so: void InstallMeOnStartUp() { try { Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true); Assembly curAssembly = Assembly.GetExecutingAssembly(); key.SetValue(curAssembly.GetName().Name, curAssembly.Location); } catch{ } } Add above method in your MainWindow.xaml.cs and call the method in constructor. Then, from next boot the application will run on windows startup. This works if your application doesn't require any special permission or blocked by UAC. 2) To play music on Application Startup do this: a) Add music file into Solution Project -> Add Existing Item... -> Add your .wav file. b) Set the file to Copy always Click the music file in Solution Explorer. In the Properties panel, set Copy to Output Directory to Copy always. Also, set Build Action to Content. This will make Visual Studio always copying the music file into the output directory (e.g. Debug folder). c) Use this code in the window where you want to play the music: using System.Media; SoundPlayer player = new SoundPlayer(); player.SoundLocation = AppDomain.CurrentDomain.BaseDirectory + "\\yourmusic.wav"; player.Play(); 3) To show the picture. Add an image element in your first window say StartupScreen.xaml. Then add a timer in code behind on Window_loaded event and set the desired interval. Like this: private void Window_Loaded(object sender, RoutedEventArgs e) { DispatcherTimer dispatcherTimer = newDispatcherTimer(); dispatcherTimer.Tick += newEventHandler(dispatcherTimer_Tick); dispatcherTimer.Interval = newTimeSpan(0, 0, 1); dispatcherTimer.Start(); } private void dispatcherTimer_Tick(object sender, EventArgs e) { //Here you will write code to stop the music and close the current window and open MainWindow.xaml } -- That's all. I hope this helps. 👍
Hey Guys,
Your suggestions are welcome for next video.
If you guys want me to add more functionalities to the File Explorer then hit the like and subscribe buttons and let me know in the comment below.
Also don't forget to Like, Subscribe & Share this video.
Click here to Subscribe Now:
czcams.com/channels/k2GyexoK16XiKkrXLD_O2Q.html
Join now to unlock custom emojis by me and get loyalty badges next to your name in comments and live chat:
czcams.com/channels/k2GyexoK16XiKkrXLD_O2Q.htmljoin
Become my patron to get early access to my videos and instantly unlock all the source codes.
Patreon: www.patreon.com/join/jdscodelab/checkout?rid=5733953
☕Buy me a Coffee:
www.buymeacoffee.com/jdscodelab
Hey @JD's Code Lab:
If you could add "Rename Multiple Items at Once" and "Create Multiple Files and Folders at Once" functionalities, it would be very nice and helpful functions.
Hi, Falcon. Sounds nice. Will think about it.👍
Just started learning WPF and your channel seems incredible. Everything is so professional.
I thought that you have 2.74M subscribers, hope you get them in a blink of eye :)
Thank you so much Gotycki. 2.74M is a long way to go. I would've crossed 5k till now if all the viewers had subscribed my channel. More than 30% of my viewers ain't subscribed yet. Lets hope what you said comes true🤩😃
next DataGrid control !!!
l'm learning a lot. thank you!
Happy to hear that!
genius
thank you thank you thank you ... you are amazing
good good
Thank you very much for your videos, appreciate your work.
I have questions (sorry if it sounds like noob or intuitive questions):
- Am I able to build a file explorer (functionally work) like yours, if I follow the two video parts?
- If I want to use WinForms as UI, am I still be able to build the software (if I follow your videos)? (I consider myself as beginner and the WinForms I think it is much easier for a beginner)? If the answer is yes, are there things that I have to know before start coding (using WinForms as UI)? (Because you know I lack experience and knowledge and I want to know if there is something I should know before start coding, to save time not doing wrong thing from the start).
Thank you in advance.
Hey Falcon,
Glad you asked the question.
#1. Yes, you'll be able to develop the File Explorer with all the functionalities as presented in my videos by following both the parts.
#2. Yes, you'll be able to develop the WinForm app following my videos as the code behind. Regarding the UI design, I find WPF much flexible than WinForms.
#3. I would suggest you to start with basic understandings and try to build small apps first such as a calculator app etc. There are alot of video series on CZcams regarding the basics. My favourite is Mr. Tim Corey.
I wish you luck.
@@JDsCodeLab I am grateful to you, your answer gave me motivation and hope in practicing programming.
I totally agree with you that WPF is more flexible (no doubt in that but at the same time it need more knowledge and effort).
I already went through the basics and I know some concepts of OOP (but this background still not solid) however I still consider myself as beginner, because I lack a lot in the practical side (I need to practice as you suggest).
Tim Corey he is one of my favorite also, he is amazing, the way he teach and demonstrating things is so brilliant.
Do you know someone else who is doing the same way as Tim does (either in CZcams or any other platforms and it is valuable content, especially if it is practical things as projects)? mention them please.
(The main point here is: the way of doing and explaining the process of building the project if it is same as Tim's way it will be better but no problem if it is different (Tim's way is more preferable)).
Thank you for your effort. I have a question. How to get adressBars text the adress of a folder or file when we click only one time? in your video, when you access files of folder, it only writes folders location.
In my FileDetailsModel file i have already added a property for accessing the path of that selected file. You can get it by:
string filePath = myfile.Path;
Hello, I hope your channel will be very useful. I want to make a wpf application. It will be activated at Windows startup and a picture will fill the screen. And the music I want will play. I will completely adjust the volume of the sound. The picture will stay on the screen within the time I set. When the picture is gone, the music will end. Can you give your opinion on this issue?
1) To run your application on Windows startup you have to set the registry key value like so:
void InstallMeOnStartUp()
{
try
{
Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
Assembly curAssembly = Assembly.GetExecutingAssembly();
key.SetValue(curAssembly.GetName().Name, curAssembly.Location);
}
catch{
}
}
Add above method in your MainWindow.xaml.cs and call the method in constructor. Then, from next boot the application will run on windows startup. This works if your application doesn't require any special permission or blocked by UAC.
2) To play music on Application Startup do this:
a) Add music file into Solution
Project -> Add Existing Item... -> Add your .wav file.
b) Set the file to Copy always
Click the music file in Solution Explorer.
In the Properties panel, set Copy to Output Directory to Copy always.
Also, set Build Action to Content.
This will make Visual Studio always copying the music file into the output directory (e.g. Debug folder).
c) Use this code in the window where you want to play the music:
using System.Media;
SoundPlayer player = new SoundPlayer();
player.SoundLocation = AppDomain.CurrentDomain.BaseDirectory + "\\yourmusic.wav";
player.Play();
3) To show the picture. Add an image element in your first window say StartupScreen.xaml. Then add a timer in code behind on Window_loaded event and set the desired interval. Like this:
private void Window_Loaded(object sender, RoutedEventArgs e) {
DispatcherTimer dispatcherTimer = newDispatcherTimer();
dispatcherTimer.Tick += newEventHandler(dispatcherTimer_Tick);
dispatcherTimer.Interval = newTimeSpan(0, 0, 1);
dispatcherTimer.Start();
}
private void dispatcherTimer_Tick(object sender, EventArgs e) {
//Here you will write code to stop the music and close the current window and open MainWindow.xaml
}
-- That's all. I hope this helps. 👍
Thank you!! The source code of this application will appear on your GIT???
Hi Алексей, currently the source codes are available only for Patreon members.
Here's the link: www.patreon.com/posts/53804349
Could you please tell me which extension you use to make the code have a white border?
I use ReSharper 2021.
@@JDsCodeLab Thanks a lot, buddy:)
i'm simply too easily distracted to follow anything that long withoun commentary =(. Seems very cool though
Ubisoft Connect Wpf
Why you don't speak? 🙊