C
C#9mo ago
Dev

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
Denis
Denis9mo ago
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
leowest
leowest9mo ago
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.
Denis
Denis9mo ago
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)
Want results from more Discord servers?
Add your server