Questions tagged as 'c#'

2
answers

Problems with project C #

Good the company has passed me a project that made a partner in C #, the problem I have when opening this that generates an error ..    Severity Code Description Project File Line Status suppressed   Error Failed to restore the NuGet package...
asked by 17.01.2018 / 09:46
1
answer

Guadar numbers of a Texbox in a Vector (array) [duplicated]

I have the following question: How could I save what is in a texbox with numbers separated from each other by commas, which are entered by the user in an array (vector)? The maximum number of numbers that can be entered is 3, and separated by...
asked by 28.12.2018 / 16:13
2
answers

Define DataGridView column width when loading from a DataSet? [duplicate]

This works well for me List mascota = new List(); dataGridView1.DataSource = mascota; getEncabezado(); private void getEncabezado() { dataGridView1.Columns["idmascota"].Visible = false; dataGridView...
asked by 12.10.2017 / 13:20
1
answer

linq sum group by from a list

Hello I have a list of Articles of the Article class public class Articulo { public Int32 IdArticulo { get; set; } public decimal Cantidad { get; set; } public string Estado { get; set; } } well, from this list, I need to add th...
asked by 13.10.2017 / 19:14
2
answers

How to get the sum of an array in c # [closed]

I have an array that is {1 2 3 4 10 11} and the variable V = 6 the sum of the array should give the result = 31 thanks     
asked by 15.05.2018 / 23:44
1
answer

Problems with C # variables

I would like to know if it is possible to update or refresh (or something like that) a variable, without assigning new values. For example. I declare a vector and give it values, then declare a variable. N contains a formula. vector [0] = 2; vec...
asked by 21.07.2018 / 14:43
1
answer

Convert 'int' to 'string'

I am trying to communicate to my arduino with Visual studio C #, everything is fine, the only thing I can not get is that the program recognizes my int as a string, even though I already added the .tostring () to it. here the program that I have...
asked by 17.04.2018 / 03:22
1
answer

Doubt about moving from one class to another c # [closed]

I have a base class called Vehiculos and apart I have another class called Alquiler . It turns out when you make the rent I have to show you what the total rental price would be, this is done by multiplying the daily cost of the veh...
asked by 26.07.2017 / 18:08
2
answers

Separate the components of a date into different variables

using System; public class Videoclub{ struct fecha{ public string dia; public string mes; public string anyo; } struct pelicula{ public string titulo; public string director; public stri...
asked by 06.11.2017 / 19:10
1
answer

create classes in C # as in Visual FoxPro [closed]

Masters. I'm about to start my first project in C # (I'm a developer in Visual FoxPro), I need to create visual classes of Textbox and Grids (among many others) that I will use in almost 90% of the project since I want to customize them to stand...
asked by 17.04.2017 / 20:24