3 WinForms Setup Tasks You Should Do Right Away in 10 Minutes or Less

  Рет қаралды 7,191

IAmTimCorey

IAmTimCorey

Күн бұрын

When you first create a Windows Forms project, there are a few things I recommend you do. For example, I recommend changing the default font size since it starts out as 9 point. Waiting to change that will actually have negative implications for your project, which I will show you. In this 10-minute training video, we will go through the first few tweaks I recommend you make to any WinForms project.
Full Training Courses: IAmTimCorey.com
Mailing List: signup.iamtimc...

Пікірлер: 54
@gahshunker
@gahshunker 9 ай бұрын
Great! We are ready for the postman winform episode #2 :)
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
Monday!
@waynehawkins654
@waynehawkins654 9 ай бұрын
@@IAmTimCorey How many episode will be for this postman app?
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
Right now, I'm planning about 12 but I'm also expecting to add more features as we go. The app will be working by about lesson #4, though.
@bhanuchhabra7634
@bhanuchhabra7634 9 ай бұрын
One piece of advice, as soon as you add a new control, rename all you want then change the events and such, 2nd use anchors as soon you add a new control, it will save your life later. What are anchors: anchors are references for your controls, these are the reference point where you controls would stick to in case you maximize or change the size of your forms, for example ok and cancel button on bottom right 10px etc
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
Thanks for sharing!
@IBNEKAYESH
@IBNEKAYESH 9 ай бұрын
Most of the legacy systems still running and development ongoing in WinForms.
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
Correct.
@bhanuchhabra7634
@bhanuchhabra7634 9 ай бұрын
Very true very true, probably even for the next couple of years if not another decade 😀. not all companies and not all winForms apps can move to other platforms, not even WPF not even to Web.
@IBNEKAYESH
@IBNEKAYESH 9 ай бұрын
@@bhanuchhabra7634 yes, Mostly all the transactional apps like out, internal invoices, accounts entries, TAX and VAT entries those transactions are very handy for end users, so the framework is WinForms, and that's why old and new development continue in it.
@S3Kglitches
@S3Kglitches 9 ай бұрын
Folder structure by component types or by use cases? Endless fight in my mind :)
@abto6914
@abto6914 9 ай бұрын
Same fight😂, I think it is a personal prefrence tho
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
Whichever works better for your process.
@mohdotnet
@mohdotnet 9 ай бұрын
Thanks Tim, great winform tips. ❤
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
You are welcome.
@andergarcia1115
@andergarcia1115 9 ай бұрын
Master, I'm following your steps to learn WinForms because I believe, as you say, that it's a user interface type that remains in use. thank you for your valuable advice and recommendations.
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
You are welcome.
@S3Kglitches
@S3Kglitches 9 ай бұрын
Too bad they still did not add search bar to Properties window in vanilla WinForms designer.
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
I think the feeling there is that there aren't enough properties to warrant another thing taking away screen real estate in VS.
@lor0the0fallen0angel
@lor0the0fallen0angel 4 ай бұрын
Font size: Good to know. Form naming: i miself forgetting it almost every time :-) Folder structure: worth considering, thanks for the tip.
@IAmTimCorey
@IAmTimCorey 4 ай бұрын
You are welcome.
@S3Kglitches
@S3Kglitches 9 ай бұрын
Have you also experienced less reliability and more bugs in basic C# editor in Visual Studio since 17.8 and 17.9 when probably Maddy Montaquilla from MAUI was placed in VS management?
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
Maddy is working on MAUI tooling (mainly VS Code), so I don't think there is any causation here. As for reliability issues, no, not really. There are always bugs but it has been rather stable for me. Also, if you are saying "since 17.9" then I'm not sure what you mean unless you are using pre-release versions of Visual Studio. The current version is 17.9.5.
@Mr.Joedara
@Mr.Joedara 9 ай бұрын
Good morning/afternoon/vening to you Tim, Im just asking if there isan alternative ways you know to create an installer of a solutionn with two projects on it except squirrel :)
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
You can check out Wix or any other application that creates MSI files for alternatives.
@Mr.Joedara
@Mr.Joedara 9 ай бұрын
@@IAmTimCorey Hi, I already finished my app deployment base on this tutorial. Thank you for that! I already upload my release file on my github repo also but the problem is, when i download the .exe or .msi. It says taht it might have a virus. I know that it hasnt but how do we remove that?
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
You probably need to digitally sign the file. That can be expensive still, but Azure has a system for doing so that is in preview right now. I forget the name, but it is for creating developer certificates for digitally signing applications.
@Mr.Joedara
@Mr.Joedara 9 ай бұрын
@@IAmTimCorey thanks
@EnglishBob70
@EnglishBob70 9 ай бұрын
Love these videos! WinForms just won't die, will it? It's been a while since I've done anything using WinForms. Does anyone know how well it handles different DPI and resolution settings? e.g. will it it look about the same on a 4K display as it would on something more modest (lower DPI)? Lots of apps tend to look really bad at high DPI. Any plans to do a course on more modern UI frameworks, e.g. WinUI? I was asked to write something in WinUI reasonably recently and, without any experience of its forerunners (WPF, UWP), it was an absolute nightmare to get started. The documentation is seriously lacking, and any sort of training materials are few and far between. It's almost as if Microsoft don't want it to succeed.
@TisSaxInit
@TisSaxInit 9 ай бұрын
I am not sure why my comment mentioning another way to change default font for the whole project was removed Tim?
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
I'm not sure either. I didn't remove anything. KZbin may have screened it because of a link or what it thought was bad language.
@Cornelis1983
@Cornelis1983 9 ай бұрын
Initial name Form1 could initially also have been the name of the project I guess. Not that beautiful either but at least it is better than Form1.
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
I think they really wanted to force you into giving it a good name rather than having a "good enough" name.
@JoshWeeks
@JoshWeeks 9 ай бұрын
I deal with so much old winforms crap every day.
@S3Kglitches
@S3Kglitches 9 ай бұрын
are you sure the whole old system isn't crap? Usually WinForms is enjoyable because it's simple and intuitive. We even chose it for new projects.
@JoshWeeks
@JoshWeeks 9 ай бұрын
@@S3Kglitches Not at all. I find WPF a treat compared to WinForms. A nice separation of ui and logic does a lot for sanity.
@vincentotieno9197
@vincentotieno9197 9 ай бұрын
@@JoshWeeks Forget WPF. .NET MAUI id the way to go now.
@S3Kglitches
@S3Kglitches 9 ай бұрын
@miyu545 sometimes there has to be a lot of logic in the UI as well (in addition to logic in the business/application layer). But in some cases it can all be separated into these layers successfully depends on app.
@JoshWeeks
@JoshWeeks 9 ай бұрын
@miyu545 Yep and then the ui layer still sucks if you're using WinForms, but that makes it a lot easier to switch to something else :)
@-martintheengineer-7465
@-martintheengineer-7465 9 ай бұрын
👌
@IAmTimCorey
@IAmTimCorey 9 ай бұрын
👍
Centering With CSS The Easy Way
10:08
IAmTimCorey
Рет қаралды 4,5 М.
Accessing AppSettings in Console Apps Including Secrets.json
23:53
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Fixing a Common WinForms Bug (CS0103) in 10 Minutes or Less
7:35
Intro to Windows Forms (WinForms) in .NET 6
1:35:50
IAmTimCorey
Рет қаралды 247 М.
C# Compare Windows Forms vs WPF vs UWP
8:17
Programming w/ Professor Sluiter
Рет қаралды 70 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 40 М.
10 C# Libraries To Save You Time And Energy
33:59
IAmTimCorey
Рет қаралды 209 М.
How IDisposable and Using Statements Work Together in C#
10:01
IAmTimCorey
Рет қаралды 34 М.
Setting Up Our Project: Building a Postman Clone Course
22:49
IAmTimCorey
Рет қаралды 11 М.
3 .NET "Best Practices" I Changed My Mind About
10:16
Nick Chapsas
Рет қаралды 106 М.
Global Error Handling in C# Minimal APIs
13:59
IAmTimCorey
Рет қаралды 18 М.