Questions tagged [winforms]
WinForms is the informal term given to the graphical application programming interface (API) included as a part of Microsoft's .NET Framework, providing access to the native Microsoft Windows interface elements by wrapping the existing Windows API in managed code.
318 questions
4 votes
1 answer
368 views
Tic Tac Toe Game app design - ways to design or segregate too much logic from UI
I wanted to check my system design and/or object oriented design skills. I started with this Tic Tac Toe WinForms Desktop program. The user couldn't input characters other than O , X . Both players of ...
5 votes
1 answer
210 views
Efficient graph rendering and shortest path highlighting for large undirected graphs in C# WinForms
I'm currently working on a map routing project using C# and Windows Forms. The application calculates the shortest path in a graph, then renders the graph and highlights the minimum path. Right now, ...
5 votes
2 answers
220 views
Information of Selected Cells from DataGridView in C#
I've created some functions to calculate summation, maximum, minimum, average and standard deviation value of selected cells from DataGridView in C#. The ...
5 votes
1 answer
144 views
Font Selector Combobox Design in C#
A font selector combobox which contains all the values from the InstalledFontCollection enumeration is created, and the font of each item is same as its name. The ...
9 votes
2 answers
748 views
Color Selector Combobox Design in C#
I am trying to create a color selector combobox which contains all the values from the KnownColor enumeration, and the background color of each item is same as its ...
10 votes
3 answers
1k views
GUI Interface for a command line program in C# Windows Forms
I am brand new to C# and this is my first time making a GUI. The program is pretty simple, since I don't have too much knowledge of GHDL. All it does is take the file paths, and generate relevant ...
2 votes
2 answers
156 views
Form in the Epicor ERP environment
I've written this code for use on a form in the Epicor ERP environment. The code is doing what I need, but since I'm still learning I would imagine that there are better ways of coding. I'm here ...
2 votes
1 answer
215 views
Proving that a Window Message is being sent by async/await
I asked a question on Stack Overflow and there's a discussion between @Serg, who posted an answer and @Jimi, whose comments suggest that the answer might be wrong. So I implemented the following code ...
-2 votes
1 answer
76 views
Is it possible to simplify an event that does the same thing for every panel? [closed]
I wanted to make certain panels have their own custom border color, and the only way to accomplish this (as far as I know) is to manually subscribe every individual panel to a paint event that changes ...
4 votes
1 answer
156 views
Is there a more performance-friendly way to check and change the colors of a WinForms app?
I'm a somewhat new programmer developing a WinForms application in C# that has the option to change the theme/colors depending on user input. Due to the complexity of the application and the amount of ...
6 votes
4 answers
344 views
2-Player Chess in WinForms V.2 (With Separation of Concerns)
Introduction After getting initial feedback on my first working version of this Chess WinForms game here, I have used the suggestions and comments from there to come up with this new version, trying ...
3 votes
2 answers
591 views
2-Player Chess in WinForms
Introduction I decided to program a two player Chess game in C# windows forms to help me to improve my programming skills and OOP skills. I have come to a working finished program (as far as I can ...
0 votes
1 answer
131 views
Fill TextBox from ListBox on click
I have a form in a WinForms application that has a Textbox called txtSupplier, a button called btnSrchSuppliers, a label called <...
4 votes
1 answer
477 views
Bouncing balls program with speed up/speed down boxes and lines which change direction of ball
I'm new to C#, background in Ada, C. This is my second lab in a course, output works correct but I feel like I've missed something about OOP. I've asked for feedback from lab 1, but didn't get any. ...
1 vote
1 answer
411 views
WinForms Most effective way to Rearrange Custom Controls in a FlowLayoutPanel?
I am creating a video parser in C# WinForms. You select files, they get parsed then a custom control (ViewWideNarrow ) is created showing the video's name, duration and so forth, which is then added ...