Building a ui for a balckJack C# game using windows form
I have built a console based game but dont knwo how to add a ui
3 Replies
The easiest way is to create a new project with the WinForms template. However, do not expect any cool graphics. Customizing the look of WinForms is very tedious
If you want more customizations, use WPF
But that has a learning curve
or Avalonia
and yes like Denis said learning XAML have a learning curve compared to winform.
creating custom controls with winforms some times requires you redrawing elements of the ui, creating shapes and knowing math, so its not exactly very easy, it also have plenty of rendering and flickering issues and runs on top of GDI.
The GDI part means that if you do your UI incorrectly, the app may crash due to unreleased resources
And let me tell you that debugging gdi leaks is a huge pain in the back end (pun intended)