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.

learn more… | top users | synonyms

3
votes
1answer
32 views

Active Directory Query Application - Take 2

This is an update to my previous post about my Active Directory Query Application. I have made multiple modifications, and I request some feedback. Summary: This program queries an active directory ...
3
votes
2answers
84 views

User editable properties with varying number of arguments

Recently I used this pattern to create a list of properties, each property having a varying number of arguments. The properties list can be made at compile time, it does not need to change at ...
3
votes
2answers
216 views

Active Directory Query Application

This application is designed to query an active directory, and at the moment, performs only two tasks: Save a list of all users to a file. Save a list of all groups that all users are in to a file. ...
1
vote
1answer
52 views

Improving GUI update call from a worker thread in winforms

I have a winforms app and I've been using the following approach to update controls on the main form from worker threads: GamepadManager class has: ...
3
votes
1answer
76 views

Arranging Buttons on a Process Enumerating Application

I had the following piece of code for populating a list of currently running processes in an IT Self-Help application : ...
2
votes
1answer
66 views

Chess game in Windows Forms Part #2

(Part 1 here) I've recently created my own 2-player chess game, no AI... at least for now. I do plan to do that in the future, so one of my concerns is if the code is flexible enough to just ...
5
votes
2answers
132 views

Chess game in Windows Forms Part #1

I've recently created my own 2-player chess game, no AI... at least for now. I do plan to do that in the future, so one of my concerns is if the code is flexible enough to just use the same classes ...
5
votes
2answers
164 views

List<dynamic> to ComboBox

This code get a list<dynamic> from a repository class using Dapper. I need to bind this list to a ...
1
vote
1answer
31 views

Reducing the time of Update and Sum Query C# Access DB?

I have a simple query using query builder of VS2012 C# which updates the database in my winforms application. The database has 216 entries so far and it's taking a lifetime to update the database. How ...
1
vote
1answer
39 views

Design/Architecture for MVC WinForms Dialog Control/Use

All I have built an MVC WinForms application where Views are blind and deaf of their controllers. To facilitate this I have used Ninject as my Dependency Injection (DI) Inversion of Control (IoC) ...
4
votes
1answer
55 views

Tic Tac Toe using WinForms

I have made a simple tic tac toe game and need help tweaking it to fit the bill of object oriented design. Any suggestions most welcome. I basically want it safer, and more "best practice-like" It is ...
2
votes
0answers
22 views

Supporting all closure options in WinForms MVC application

I have a WinForms MVC application that uses Ninject for it's Dependency Injection (DI) / IoC Container. I have build quite a nice framework that allows the main shell (which uses a Docking Container ...
3
votes
2answers
82 views

Creating a new camera stream

I'm currently in the process of refactoring some code and I was wondering if I should use switch or if-else for the is code: ...
3
votes
2answers
99 views

Project Euler GUI for Problem #1 through #11

I've been working on the Project Euler problems, so I created a GUI and a Solver class for all the code I've been creating. I'd like to share it with you guys and to get general feedback on my coding ...
1
vote
0answers
48 views

UI code-behind for managing employees

I have a form code behind and it has what are called "Common Utilities". Basically the original author made a super class that is embedded into the main form code behind. What is the best way to ...
4
votes
2answers
257 views

C# Winform Amazon Application

This is my first program I've written ever. Don't hold back on me. Any help and feedback is appreciated. This code wont work because it requires some keys, but I censored them out, but it does ...
8
votes
2answers
248 views

WinForms Poker (complete project)

I have quite huge question/favor to ask but I hope I can get some useful answers. This is my first complete project, I'm still learning C#, my first programming language. I'm afraid that there will ...
3
votes
1answer
171 views

Use of Ninject as an IoC container in a WinForms MVC application

I am a relatively experienced WPF developer who has had good exposure to MVVM. I have been developing legacy WinForms applications for a while and have recently been asked to fully re-write a large ...
14
votes
1answer
195 views

Simple dictionary storing/viewing application

A TreeView on the left which just displays a list of files saved by the application. A DataGridViewon the right to display data ...
2
votes
2answers
111 views

Insert rows in the datagridview with a dictionary

I would like to improve the function below without calling twice InserisciRigaNote. Before I fill my dictionary. When I compare ...
4
votes
1answer
87 views

Disable and enable text boxes according to the radio button click

Here is a GPA calculator in C#. I am feeling like the code that I write and format are quite long and would like it to be shorter. This program is using radio buttons to enable and disable the text ...
6
votes
1answer
92 views

Dialogue system using an FSM

In short - I've started with C# not so long ago (which means you find a lot of poor written code here) and now I'm aiming to create a dialogue system. Though my code is working as it supposed to, ...
6
votes
1answer
67 views

Populating a listbox in a mock invoice with selected items

So I'm almost 100% certain I've done something wrong simply due to the inefficiency of what I've written, I'm entirely a novice to coding and am working on an assignment for my introductory ...
1
vote
1answer
72 views

Browse Folders for Videos

I am a self-taught programmer and would love any advice / suggestions. I wanted to implement some sort of n-tier Architecture, but not sure how to move all my code around. My program will take movies ...
5
votes
1answer
106 views

Load & view movies on a hard drive in Netflix-like UI

I am a self-taught programmer and would like anyone to point out anything that is not the standard or professional way to do things. Any help/advice is greatly appreciated. I would love to post a lot ...
5
votes
1answer
139 views

Paste from Excel to DataGridView

I have this code that helps me to paste data from an Excel file to a Datagridview: ...
8
votes
2answers
167 views

short or simple solution for putting values from label to column in excel

I have a code here that counts the number of fruits from Column B to Column AF (31 days). I used a switch with cases from 1 to 31. I'd like my code to be simpler. ...
12
votes
2answers
387 views

Input validation for a user

I have a small Person Domain Model as follows: ...
2
votes
1answer
113 views

Creating a user registration form

How should I go about creating a registration page in Windows forms? I can easily create a registration page, but I'm not sure if it's the best way. I'd have a service account that is hard coded, and ...
1
vote
1answer
56 views

Custom DataGridViewColumn to replace a DataGridViewComboBoxColumn

The issue that i'm trying to fix with this code is simple I have a huge dataset and I have to bind it (as readonly) to a DataGridView In that dataset I have some ...
-1
votes
1answer
100 views

Simple C# goto alternative

I heard goto is bad, so I ask someone in this site if my code is better using goto or other alternative ...
4
votes
3answers
712 views

Determine payment based in the number of adults, number of children, and some combo box selection

How can I shorten this code with a while loop? Is it possible? cboFrom and cboTo is a combobox. I only know how to do simple ...
3
votes
1answer
90 views

Dynamic visual list of images

Situation So I have made a list of PictureBoxes on my form that looks as follows: All images have a panel behind them that is 4px lager (2xp all around the picture box). The images are named ...
1
vote
1answer
100 views

Create Form Controls based on the properties of a class

Is there a better way to create Form Controls for properties of a class? Right now, I iterate through all properties of a class and have a method to create the Form Control for that property based on ...
-1
votes
2answers
136 views

Accessing a list of websites using a configuration read from an XML file [closed]

I have a C# application and a CakePHP website. These communicate between them using GET and (WebRequest) POST method. My problem is that it's happening too fast. I have made a diagram that shows ...
3
votes
1answer
450 views

Opening an XML File and Returning the XmlDocument

I'm working on my first Windows Forms tool for a project; this is my first time using C# extensively. Right now, my only objective is to be able to open an XML file and have the resulting XML in hand. ...
-1
votes
1answer
50 views

Extracting Power and Energy out of a slow regex

My WinForms application is a bit slow, I'd like to make it faster. It extracts only the power and energy values out of a string in textBox3, and displays the ...
10
votes
3answers
128 views

FizzBuzz in accordance with standards

I wrote FizzBuzz. My aim is to use C# Code Standards correctly, and write flexible code. How can I improve my solution according to code standards? How can it be better in general? ...
10
votes
1answer
123 views

Pattern-finding game

This is a game that is supposed to be based on strategy and guessing. The letters need to match in a ABCD fashion on each button on buttons[0] - ...
4
votes
1answer
133 views

SQL Permission Handling in WinForms

For my application, I've opted to use Integrated Security with Windows Authentication to access the SQL database. I've created AD security groups for each role and given them ...
4
votes
1answer
208 views

Tic Tac Toe with winforms

This game works out the basic of a Tic Tac Toe game. I am looking to see if this can be redone in any way to make the code more smaller since this is really big. ...
19
votes
5answers
2k views

Console window to debug Windows Applications

Since I was having some difficulties to debug the next step for Scrolly - A (very) simple infinite mouse "scroll", I've decided to make a console-like class that allows to add messages to it. This ...
10
votes
3answers
383 views

Scrolly - A (very) simple infinite mouse “scroll”

Out of fun, and to practice my rusty C# skills, I've made a very basic program. It only has 1 function: When you move the mouse to a side of the screen, it shown on the other side. Like an infinite ...
7
votes
2answers
140 views

Drag and drop single files on different targets for different purposes

I have three text fields (DevExpress ButtonEdits set to read only) on a Windows Forms app. They look like this: They're used by dragging and dropping a single ...
3
votes
1answer
182 views

Populate tree from 3 different data sources and show its content

The task is to build a WinForm app which populates a tree from 3 different data sources and shows its content. 1 ComboBox at top - to choose datasource. (File ...
6
votes
1answer
122 views

Winforms Mathematical Operator Label

I wrote a custom class which (atm) displays the +, -, =, x, and ÷ operators inside a circle. Apart from the issue of some symbols not appearing in the exact center (everything except + looks a bit ...
5
votes
1answer
432 views

Preparing a YouTube downloader based on Windows form

The program this function was written for is a Windows forms program. This function downloads videos from the internet one after the other. It runs in a separate thread (so the user can drag the form ...
5
votes
2answers
460 views

Binding Lists of Commits to a DataGridView in Winforms with an MVP architecture

I'm using Winforms and I find this pattern showing up in my code a lot. It works, but I'm unsure if it's best. The goal is to pass an IList of items through a view ...
5
votes
1answer
69 views

User can choose to add one of two node types to a treeView, both of which have almost identical settings

There is a context menu that comes up when a user right-clicks on a node in a TreeView. They are then presented with the choice to either add what is called a "RWB" or an "AQ" node to the tree. Both ...
1
vote
1answer
51 views

Properly managing a collection from deserialized XML file throughout app's lifetime

I'm developing a WinForms app to manage some settings and profiles for multiple video games. The list of video games is specified by the user, and I'm trying to figure out how to properly maintain ...