Windows Forms (WinForms) is the name given to the graphical application programming interface (API) included as a part of Microsoft .NET Framework, providing access to native Microsoft Windows interface elements by wrapping the extant Windows API in managed code.
0
votes
1answer
86 views
Winform User Control on ASP?
I wrote a C# Winform User Control as follows when Executable is Run:
My question is how we can use this Winform C# user control in one ASP Page. I know about WEB User Control and using in ASP but ...
1
vote
0answers
50 views
Using events and event subscribers to create windows in a desktop application
I should probably open this by saying I do mostly Web applications at work, which obviously have some major differences from typical desktop stuff.
I had a small Windows Forms program I'd made for ...
-2
votes
1answer
119 views
Why are interfaces necessary in MVP design pattern?
I am trying to understands MVP using Winforms.
I found this example. Why do UserModel and UserView need to implement the IUserModel and IUserView interfaces ?
5
votes
4answers
277 views
Object with Customized Properties and Methods
A project I am working on currently models Order information. Right now, there is one class with a bunch of properties and functions that all of orders have in common. In addition, some of our users ...
0
votes
1answer
168 views
C# Application GUI design dependent on configuration
I have built quite big WinForms application working in industry for a few years. It communicates with many HW devices. Application can be configured to use or not use some of these devices and GUI is ...
0
votes
0answers
107 views
Event-handling in WinForms MVC-Implementation
I am trying to implement sort of an MVC-Pattern (Passive View) for a winforms-application to clean up the code. The basics are quite clear and I did implement some views of the application in ...
2
votes
1answer
501 views
Pattern for communicating between nested usercontrols and parent form (C# / Winforms)
I'm trying to decide the best way to handle communication between a UserControl that is nested within another UserControl and the parent Form itself. I have a Form, inside the form there's a ...
0
votes
0answers
176 views
Is it possible to have multiple threads using Background Workers for different controls within one GUI
In my current project i have a CPU intensive 3D chart that needs to be updated in real time.
I have been using background workers for the project and using those, i do all the processing in the ...
1
vote
1answer
271 views
Multi-threaded winforms with multiple child forms using sockets
I develop application with two main option grouped by groupBox in main form. First option is run server with specific behaviour for example I choose TCP protocol, type IP address, port number and ...
2
votes
1answer
230 views
Two way communication between Form and plugins
I have started to develop a support tool for an old legacy system that is no longer maintained but still needed for the foreseeable future. The legacy system offers few, clunky and error prone methods ...
1
vote
1answer
105 views
Databinding When View Differs From Model
I have an entity Customer. Customer has a collection of Accounts. I have corresponding classes. The Customer class has-a List<Accounts>.
I have two views. First page shows the Customer's name, ...
4
votes
2answers
794 views
How do you separate view from logic in a Winform application?
I know there are patterns like MVC to separate view from logic, however, I don't know how common they are in Winform applications.
For a C# Winform application, I may start with a Form and gradually ...
0
votes
1answer
264 views
proper exception handling (throwing/message) dll libary
I just wrote a dll library using vb.net. while testing, i got an error which i did not initially use a try-catch block. The code is
Try
'The first four bytes are for the Command
...
1
vote
0answers
212 views
Choosing the right design pattern/architecture for a scenario
I have a situation, in which I would like your opinion about the best approach that I should take.
Let's consider 10 classes (obj001, obj002 etc.) all which represent some business entities, and are ...
-1
votes
2answers
493 views
Would redrawing controls in c# give more performance?
Now I realize this is a kind of weird question but here it is:
Let us assume I redraw all the controls by myself rather than using the default provided ones (Obviously I'm talking of winforms as WPF ...
-1
votes
2answers
1k views
Productivity using .Net WPF for large ERP (LOB) desktop applicatons ~1500 forms\dialogs [closed]
I am wondering if WPF will fit in my case:
We want to refactor an old legacy application written in a 4GL language with about 1500 forms\dialogs. We want to do that in .Net (desktop application), now ...
0
votes
2answers
1k views
What is the best way to allow a user to specify a SQL server and database from a Windows application?
I am working on building a Windows application that will require a connection to at least two different Microsoft SQL Server databases (for example, a source and a target), which may or may not be on ...
1
vote
0answers
246 views
How should one handle a Parent-Child relationship using MVP?
In a conventional MDI WinForms application, one would go like this:
public partial MainMdiForm : Form {
public MainMdiForm() { InitializeComponent(); }
private void ...
0
votes
3answers
2k views
Is it ok to restart a BackgroundWorker inside its Completed event
I want a background worker to continue running and occasionally update the user interface. My first idea was to use a BackgroundWorker and in its completed event just fire it up again.
Is using a ...
1
vote
1answer
170 views
Where to store front-end data for “object calculator”
I recently have completed a language library that acts as a giant filter for food items, and flows a bit like this :Products -> Recipes -> MenuItems -> Meals and finally, upon submission, ...
1
vote
1answer
278 views
Changelog Management [closed]
I'm currently developing a WinForm application.
In order to inform the client about the improvements and corrections made during the last version, I would like to manage and display a changelog.
I ...
0
votes
1answer
206 views
Can't understand on how to implement MVP/MVC for my software requirements [closed]
Recently I decided to start developing a client/service based system using WCF and a Duplex Channel (callbacks from Service to client). The clients will behave as "slaves", that is, they will only ...
0
votes
2answers
2k views
Organizing solution / project structure and classes for Line of Business Application (LOB)
The question how-do-you-organize-your-projects already has a few good answers. I would like to get a better understanding about this suggested structure:
MyApp.Core
MyApp.Model
MyApp.Presenter
...
1
vote
1answer
3k views
Differentiating Standalone and Client-Server architectures
I was wondering what is the exact difference between a client-server and a standalone application, particularly in following scenario.
For example lets say there is a win forms application running on ...
2
votes
1answer
2k views
When deciding a Primary Key, can I use Date part of a DateTime field
I'm designing a payroll system I have designed a database with several tables and this question is related to following tables
EMPLOYEE (Employee_ID [pk], Name,... etc)
LOCATION (Location_ID [pk], ...
3
votes
1answer
556 views
Showing a View from another View in MVP
This question is regarding MVP triads. Lets say I have two triads and first one has View1, Mode1 and Presenter1. Second triad has View2, Model2 and Presenter2. Now what I trying to do is, I just want ...
1
vote
2answers
243 views
what to do when UX asks for an ugly, convoluted event driven design and you don't know how to implement it in a clean manner?
I have been tasked with creating a desktop client application that fetches data from web apis and presents it to the user.
During the last month or so, I've spent most of my time and energy bringing ...
1
vote
1answer
829 views
Presenter accessing the value in text box using sender object
I have following method in my presenters which validates the user inputs on the UI. Basically to capture the value of the text property of the text box, it uses sender object which was passed in by ...
1
vote
0answers
1k views
Updating GUI in 'realtime' using events
My Plan
Have a system that holds some objects
Have a winforms-form that displays some key values of these objects
When certain changes occur(object gets add / removed / datat change): Update GUI
...
1
vote
1answer
315 views
How to manage a winforms application installed in many PCs connected to a single sql database?
I have a winforms application that connects to a single sql server 2012 database and is executed in many PCs of a company.
I'm having several problems with some transactions inside the application, ...
0
votes
3answers
396 views
How to restrict the violation of an N-Tier Architecture
Recently we fitted a 4-Tier Architecture in our project composed by the following four main layers :
User Interface Layer.
Data Access Layer.
Domain Layer.
Business Layer.
All the layers fulfill ...
2
votes
1answer
511 views
How to create a WinForms project that is “WPF-ready”
I'm a C# developer who hasn't had the privilege of learning WPF yet. However, I recently initiated the architecture phase of a new project which I expect will eventually employ WPF (probably; although ...
0
votes
1answer
382 views
SQL Update statement generator using C# Winforms?
I am trying to make an UPDATE STATEMENT generator using C# Winforms. I would like to build a statement generator which will print statements like this:
UPDATE Customers
SET ContactName='Alfred ...
13
votes
2answers
31k views
Should I use a list or an array?
I'm working on a windows form to calculate UPC for item numbers.
I successfully create one that will handle one item number/UPC at a time, now I want to expand and do it for multiple item ...
7
votes
2answers
310 views
Are there established algorithms for spacing out objects of unequal size?
I'm working on visualizing a hierarchy. There will be clusters of objects, each cluster containing rectangles of fixed width but variable height. I'd like to arrange these within a rectangular space ...
6
votes
6answers
12k views
What are the alternatives to resx file
I am developing a Windows application and I want to store all the text for labels, radio buttons, buttons, check boxes and column headers of grids at one place. I have tried using a class file, an xml ...
2
votes
2answers
2k views
MVP Implementation at the UserControl Level
I'm trying to figure out how MVP should be implemented at the UserControl level. I thought I had it, but I ended up reading a blog post that pretty much shut me down. Now I'm back at the start and ...
-1
votes
5answers
477 views
The emperor's new code, or: how to communicate code efficiencies [closed]
So you've made some code changes that should hopefully speed up some part of an application. But there is just one problem - you don't know how it will perform in live.
Different networks, different ...
0
votes
1answer
435 views
Is it possible to import vb.net form to blend?
I have created a windows form using visual studio design, that is simply drag n drop component into the form from Toolbox.
Is it possible to import it into Blend and change its appearence using Blend?
...
2
votes
3answers
2k views
Is there a better way of handling access control logic instead of it being in the UI?
Through most of my dev experience, I've never had to deal with much variety of access control architectures.
They've all been pretty straight forward:
Group [Create, Update, Delete]
- User 1
...
1
vote
1answer
1k views
Which design pattern is typically used when designing a WCF data services driven Winforms application?
Please excuse me as I am a bit new to the following technologies and practices. I have been given the task to create a management suite utilizing an MDI GUI. This suite will be the front end to a WCF ...
5
votes
3answers
3k views
Why should form inheritance be avoided?
I remember learning VB4 and dragging a button onto a form, double-clicking on that button, and typing code into that event handler I had just been magically blessed with. Coming from QBASIC I was ...
0
votes
2answers
1k views
Implementing Context-based Undo/Redo Functionality
I'm currently implementing an undo/redo mechanism using the Command Pattern. Everything works so far. My problem now is to implement the undo/redo functionality in a way that it is bound to a given ...
10
votes
2answers
13k views
What is a proper way of building Winform apps with multiple “screens”
What's a proper way of building a Winform app that has multiple 'screens'? For example, I'm trying to write a small backup program (mainly for giggles), and I've been dumping controls and containers ...
5
votes
1answer
1k views
what kind of certificate needed for my application ?
I am releasing free C# softwares I've created using Visual Studio.
In the future, some of these softwares might become Paid.
I was wondering if I need to purchase any kind of license for them ?
I ...
3
votes
2answers
1k views
What is the correct UI interface to learn for creating Windows phone 8 apps?
I am a veteran Delphi 6 programmer transitioning to C# development. My first project is a open source library that will have a minimal user interface since it is meant to be used as a Component ...
2
votes
1answer
1k views
Should I Use WCF For My Purpose?
I wrote two programs that server and client can connect to each other (one program for server and another for client) with their IP addresses (socket programming).
Now I want to modify it so that if ...
1
vote
1answer
2k views
what is difference in section and subreport, where to use multiple sections?
Please share your knowledge about these Crystal Reports concepts.
I want to know what is difference in section and sub report? I know about default sections and we can add new sections into report.
...
3
votes
2answers
1k views
How do I add a Help system to my WinForms project?
I have pretty much completed work on a Winforms application, and would like to add a Help feature for users. I cannot send users to a website, and am thinking along the lines of the kind of help you ...
4
votes
2answers
734 views
What is a good design strategy for retaining history of user activities and files like Visual Studio projects?
OK so I'm not so sure that "project" is the right term, but for my purposes, I define "project" as similar to what Visual Studio uses, or Microsoft word - files that the user can open and work on and ...