Intro to Windows Forms (WinForms) in .NET 6

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ส.ค. 2022
  • Windows Forms, also known as WinForms, is one of the original project types in .NET. It is designed to be a rapid application development environment for desktop applications. Over the past twenty years, other desktop application types such as WPF, UWP, and now .NET MAUI have come along. So, when would we use WinForms? In this video, I am going to show you what WinForms is, how to build it, what the best practices are, how to avoid some common pitfalls, and when you should use the WinForms project type. This project type still has value, even though we have other, shinier tools in our toolbox.
    Full Training Courses: IAmTimCorey.com
    Source Code: leadmagnets.app/?Resource=Int...
    Mailing List: signup.iamtimcorey.com/

ความคิดเห็น • 344

  • @thomstunes6485
    @thomstunes6485 ปีที่แล้ว +137

    WinForms are not the sexiest GUI of the world in 2022 but still by far the quickest and the most powerfull to implement. And if you take time to customise the controls you can have something way more "modern look alike". So thanks you Tim for still giving us tutorials on WinForms :).

  • @eligijuspranskunas3509

    this video should be marked as a troubleshooting problem, That part of the video was annoying, when trying to learn to make something, and getting into problem solving video...

  • @appsenence9244
    @appsenence9244 ปีที่แล้ว

    If one doesn't read the error message before freaking out then I don't think coding is for that person. Why educate these? I know we should be inclusive and all but comon there's a limited amount of jobs available, let's keep this within the inner circle! /S

  • @DonDomaMobster
    @DonDomaMobster ปีที่แล้ว +4

    What? WinForms in 2022 and in .NET 6? At first the title confused me lol! I still have to see the video tho.

  • @charlespotokar2375
    @charlespotokar2375 ปีที่แล้ว +20

    your hour half video has taught me more about this one section than my professor has in an entire semester

  • @trevoC132
    @trevoC132 ปีที่แล้ว +11

    Personally what I find with Hungarian camel case is that naming all your Labels lblFirstName and then lblLastName or tbFirstName for textbox1 first name allows you to find what you are looking for quicker in the drop down select when looking for controls. I realize the firstname example is not the best as most of us would see that as first name and look in F, but when you can't remember the naming scheme and have dozens or more controls, knowing you are looking for a button (which there might be only 2 lets say) allows you to go to btnDDD or b in the list and see only 2 very quickly rather than scroll through the entire list looking for some other naming convention. I realize the entire industry flip flops on these things all the time, but I don't find the argument that this is how you say it naturally as appealing as me finding it quickly in the drop down select on a form that is so complex (with controls hidden behind other controls for those of you who say click it directly) that it is difficult to find the name when unknown. justMyTwoCents = habit

  • @VitaliChuzha
    @VitaliChuzha ปีที่แล้ว +21

    Do not underestimate Windows forms! It’s the best way to program for Windows for last 22 years.

  • @isen1
    @isen1 ปีที่แล้ว +3

    it looks like a working app, it feels lik a working app.... so it MUST be a working app (u can change working app to duck also LOL)

  • @montanomariano
    @montanomariano ปีที่แล้ว +6

    Thanks Tim! I’ve seen code behind files with over 30k lines of code and all kinds of data access in there... you can forget about testing anything in there... if you are a developer working in windows forms, WPF, web forms, Maui or whatever technology with a code behind associated to the view, please, think about your future self and your colleagues that will come after you, and put your business logic to in a different layer!

  • @itsmundo

    I'm not quite sure what the issue is but when I go to create a new project, it says Solutions 'WinFormsDemoApp' (0 of 0) in the solutions explorer and then has a separate folder with the other files. So my form never pops up in the main editing window in design mode. I've tried uninstalling visual studio and re installing but still get the same issue.

  • @timyoung6495
    @timyoung6495 ปีที่แล้ว +6

    Thanks for the wonderful video! I learned quite a lot of subtle stuff in this episode! Also, if I recall correctly, the reason for allowing Tab order on labels is so that you can assign accessibility keys to the non-labelled controls. For instance a label with a tab order 3 and a text property of &First Name will give focus to a text box with a tab order of 4 when you press ALT+F. So, it's a way of setting shortcut accessibility to things like textboxes, comboboxes, listboxes, etc. via their preceding labels. (At least that's how I remember it to be.)

  • @S3Kglitches
    @S3Kglitches ปีที่แล้ว +3

    Finally had time to watch and thanks for a nice video with also a few tips that I didn't know although being a WinForms developer for 2 years in a row:

  • @Skygormo
    @Skygormo ปีที่แล้ว +4

    I am taking Advanced Object-Oriented Programming this semester using C#. I wish I had watched this video first. Windows Forms had been such a headache. Thank you for the great work!

  • @sylvestrestalin
    @sylvestrestalin ปีที่แล้ว +1

    This was an amazing course I myself am a javascript developer and have been looking for a proper tutorial that will actually explains the structure of a winforms application so I can pick it up and get started on my own and this video was exactly what I needed. S good that I am going to also watch a course of yours on OOP in c# to freshen up again. Thanks ❤

  • @dontnowatimdoing446

    Hello just starting out this is a great introduction and I just realized after clicking your channel that it is a goldmine. Thank you!

  • @OpenZipper
    @OpenZipper ปีที่แล้ว +4

    Second programming TH-camr with an actual personality enjoyable to watch🎉

  • @megakyle83
    @megakyle83 ปีที่แล้ว

    I found a youtube tutorial on making Pong with C# and it was WinForms. It didn't take long for the magic to break, lol. I am so glad I found this video, it helped upgrade my understanding of WinForm applications. Also great advice at the end of the video, I am going to check out your class library video next. Thank you!

  • @mikealuspol5819
    @mikealuspol5819 ปีที่แล้ว

    Hello Tim! You are a legend! I had a problem that the buttons do not work and i found here the solution. You have just earned a Sub!

  • @andergarcia1115

    Thanks Master, It's great to see the same topic explored from a different perspective. While there are many similarities, there are also some interesting nuances that make this approach unique.

  • @ravinathsamarakoon6230
    @ravinathsamarakoon6230 ปีที่แล้ว

    Thank you so much mr Tim.I hope you willshare more precious information with us .