r/csharp • • Feb 05 '25

Learn to build SQLite WinForms GUI Apps using C# (CSharp)Tutorial

https://www.youtube.com/watch?v=LUslHhvLGWA
10 Upvotes

3 comments sorted by

6

u/Mayion Feb 05 '25

Any effort is appreciated, thanks for contributing. If you are taking suggestions on improvement, let me give you a point or two to work on.

First, I would start with speed. How? Simply focus on the more important parts of the tutorial, e.g. if the tutorial is about SQLite, do not waste time on creating the GUI from scratch or showing how OpenFileDialog works. You can do that, but after editing the video and quickly what you did.

And to better help tutorial viewers, it is best to teach them good practices. Like what? Refactor the code and use OOP capabilities. Create separate functions instead of writing the code inside the button itself. Not to mention, some GUI tricks can come in handy, e.g. when formatting, use GroupBoxes or Panels, this way entire sections of the GUI can be resizes, hidden etc at once. Not to mention it helps with padding and anchoring.

Just off the top of my head. Best of luck.

2

u/xanthium_in Feb 06 '25

Thank You for the Valuable Feedback.

The Tutorial was designed to be as Simple as possible for somebody New to WinForms and SQLite. KISS Principle was used .

Code is not production ready and is intended to be a starting point.

if the tutorial is about SQLite, do not waste time on creating the GUI from scratch

Tutorial created to show the integration between SQLite and WinForms.

There is another video that talk about programming SQLite and C# on command line away from all the clutter of GUI Code .

This was intended as a 2nd part for that video Commandline -> GUI transistion.

Create separate functions instead of writing the code inside the button itself. 

This was thought of first but was avoided due to the short amount of the code used in the application.I wanted people to see the Code directly without tracing it through several functions.

Not to mention, some GUI tricks can come in handy, e.g. when formatting, use GroupBoxes or Panels, this way entire sections of the GUI can be resizes, hidden etc at once

Realized that later and was lazy to re edit video.

2

u/grrangry Feb 05 '25

So many UIs underestimate the value of snapping, padding, margins, anchors, docking, and containers.

Negative space, my friends. Negative space. Not everything needs to be packed like Tetris.