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.
314
questions
6
votes
2
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
96
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
163
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
60
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
126
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
236
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
515
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
99
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
397
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
339
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 ...
5
votes
1
answer
421
views
Simple Ellipse Collision Mini Game
I am doing an exercise to help me understand C#and OOP. The exercise is supposed to teach me about ...
2
votes
1
answer
454
views
Login authentication using MVP pattern
How can I improve my login script and is there a cleaner way to get the same result? I had this project and redesigned it using MVP patten . Working with this patten is a new challenge for me. It's ...
1
vote
3
answers
1k
views
Saving Multiple Lists to Database - C# Forms
I am trying to store multiple lists to a database but I'm struggling on finding a better way of doing it, as the way I am doing it now, seems to be incorrect.
On my form, I have 6 different legs. Each ...
0
votes
1
answer
106
views
Creating a new WinForm each time pressing a button in a main WinForm
I have WinForm C# application that every time you press on the green button:
It opens a new WinForm window. This is the code after pressing the green button:
...
0
votes
1
answer
190
views
How to optimize the code of my pdf generation from DGV code using iText5 & c#?
I have 2 DGV's one containing bills info & another containing credit notes info. When at least one item from both the DGV's are selected then it should generate a pdf (result1) taking data from ...