Questions tagged as 'windows-forms'

2
answers

Display data from a DataGridView column in float

I'm developing an application in Windows C # which takes the order inside a datagridview and when you press the "calculate total" button you have to add the "Cost" column. The problem is that I do not respect the decimals since it shows the whol...
asked by 12.09.2018 / 20:49
3
answers

I create properties in a Form and I do not see them from another Form

Inside the file frmPruebas.cs I have created a property: public partial class frmPruebas : Form { private String mURL; public string MURL { set { mURL = value; } } ... } And when I try t...
asked by 05.02.2017 / 15:26
1
answer

How to create a WinForm User Control project

I need to create a User Control for a .NET 3.5 application in winforms under Visual Studio 2015 as a separate project, I have seen that it is easy to add one from a project, however as a project I can not find the way. When I'm going to creat...
asked by 21.11.2017 / 09:45
1
answer

Open the same form?

I want to open the same form, without having to open several more by clicking on my toolStripMenuItem2 or any other button I have my following code: ' private void notasDeEntradaToolStripMenuItem_Click(object sender, EventArgs e) {...
asked by 22.11.2017 / 01:55
2
answers

detect form open and close said form

I hope you can help me. What I want to do is detect a form that is inside my project, once the form has been detected, close that form, to detect the form I want to close I use the following code foreach (Form frm in Application.OpenForms)...
asked by 14.07.2017 / 05:44
1
answer

Listen to port LPT1 C #

I have managed to capture the message that is sent from TCP / IP, with the class Listener , however I have been asked to listen especially to the LPT1 port, since the printers of the company are connected via Ethernet, and send them to the...
asked by 11.07.2017 / 18:37
1
answer

Avoid flickering Winforms

I am developing a simple game (Snake) in winforms . I use pictureBox that I use canvas (game board) this canvas is repainted for each execution of a Timer with interval of 100ms. g = canvas.CreateGraphics(...
asked by 16.08.2018 / 14:03
1
answer

Create variable that can be passed from one Windows Form to another and return it to the Main Form

Good morning, I am working as Windows Forms and user controls within C #, which I am working with an application that acts as a clock watch. This first screen acts, like the main screen. Which all users have access to now. Pressin...
asked by 27.08.2018 / 18:29
2
answers

UserControl how to remove it

I'm working on a desktop application windows form , when I close a UserControl I do it in the following way. private void _proveedor_ProveedorClose(object sender, EventArgs e) { pnlPiso.Controls.Remove(_proveedor);...
asked by 03.05.2016 / 00:19
1
answer

Visual Studio Installer Projects with PostgreSQL

I am starting a Windows Form C # project, a commercial application that the user downloads, installs and uses, without complications. Is it possible to configure Visual Studio Installer Projects to install together PostgreSQL without the user no...
asked by 10.08.2017 / 05:47