C
C#3mo 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
Denis3mo 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
leowest3mo 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
Denis3mo 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
More Posts
Problem with Winforms debugHi, I'm writing a simple script in Winforms, everything worked so far, but today what I did happenedThe breakpoint will not currently be hit. No symbols have been loaded for this documentanyone knows how to fixed or have encountered "The breakpoint will not currently be hit. No symbols ✅ Beginner helpusing System; using System.Collections.Generic; using System.Linq; using System.Text; using System.THow to cope with this downside of MediatR?This is a quote from Derek Comartin that describes well the issue. "One of the biggest downside to iCompiler optimizations with generics```c# public interface Isome<T> where T: ISomeOther { T Foo(); } //vs public interface ISome { How can I fetch identical strings concatenated with 1 and so on at the end through this dictionaryBasically the identical string is the entity's classname: "keyframe_rope" or "move_rope"Hey guys, how can i check if my 2 Quaternions looking in the same direction?Hey guys, how can i check if my 2 Quaternions looking in the same direction?Slow HttpClient responsesI have a program which polls an API. It usually works great, but lately, I've been seeing many HttpCDoes anyone have any suggestions to potentially improve and make this function work better?I have a function that basically is supposed to look for gaps for a specified duration on a desired The program should connect 2 sorted arrays into 1 sorted arrayThe program should connect 2 sorted arrays into 1 sorted array (and sorting should be done during co