Questions tagged as 'c#'

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 convert json to object in c #?

I have the next json. {Estudiante: {nombre:'paco', edad: 20, sexo: 'm'}, Recibos: [{folio:'A1213', fecha:'10-02-2017', total: 56}, {folio:'A1213', fecha:'10-02-2017', tot...
asked by 09.11.2017 / 21:13
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
4
answers

List of type struct, modify a field of a struct of a cell in the list leaving the rest equal

After searching several days through the network, I have not been able to resolve it: struct TART { public DateTime time; public int color; public double altura; public string probado; } List<TART> LART = new List<TAR...
asked by 15.05.2017 / 19:42
1
answer

How to fill a list that has a nested list c #

Good afternoon, I try to fill a list with the following structure: MAIN LIST- > [DataContract] public class Movimientos { public string _id, _IdMovimiento, _Hechopor, _Nombre, _Nodoc; [DataMember] public List<MovimientoDet>...
asked by 26.07.2017 / 22:01
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

change value of received model properties in controller MVC C #

I have an ASP.NET MVC application in which, through a controller, I receive a model from a view (the MVC standard) as shown. [HttpPost] public ActionResult EnviarEALG(Modelo datos) { } But now by necessity I must pr...
asked by 27.03.2017 / 22:42
2
answers

Graph in C # with Datagridview data

Hi, you could advise me or give me ideas on how to work with this, what I need is to insert a numeric value in the textbox and that this value is inserted inside the DataGridView and inserted into the value column and where it says password go a...
asked by 01.11.2016 / 20:30