Questions tagged as 'c#'

2
answers

How to make a two-dimensional arrangement of String in C #?

I have a small problem, I hope and you can support me; The problem is that I want to make a 2-dimensional arrangement to make a table, something like this: string[][] dat = new string[][] {...
asked by 30.10.2018 / 21:49
0
answers

Sorting of names and numbers lists c #

I have the following code. Where the grades of 5 students are requested, both of course A, as of B. And the highest average is shown. My query is as follows: How do I also ask for the ordering form, either by name or by note? Code: usi...
asked by 25.10.2018 / 12:02
1
answer

Query Linq C #

I have a small problem and I find a solution. I have to take the name of a person and with the name of the school DB_Entities db = new DB_Entities(); // es generada por el Entitie framework public JsonResult GetPersona(string...
asked by 25.10.2018 / 16:36
1
answer

Leave empty fields of datatable to insert

How can I do it so that the Null or empty value does not become zero. I have this line: int T150 = Convert.ToInt32(dt.Rows[j]["T150"] is DBNull ? null : dt.Rows[j]["T150"]); and every time I execute it, it inserts zeros in the fields that s...
asked by 25.10.2018 / 18:09
1
answer

How to correctly add the EmguCV libraries to C #?

According to I already have the Emgu.CV libraries added in the root folder of the project, but when I compile it sends me the following error: As if the libraries were not added ... see photo. This is the image of the added references:...
asked by 25.10.2018 / 19:59
0
answers

Save excel data in SQL Server

In the image that is seen, it is a datagridview, the data is taken from an excel file, my question is how to pass this data to a table like this: Usually to insert the records of a datagrid I use a foreach to read the data, but in...
asked by 23.10.2018 / 16:31
0
answers

How to return two or more selects by a stored procedure and how to receive them in a dataset using c #

It turns out that I have a stored procedure where I return two selects, simply and simply like doing a SELECT * FROM [NombreTabla] , one below the other. I from C # what I do is receive it with a DataSet in the following way: var re...
asked by 24.10.2018 / 15:53
1
answer

Headers in request to WebService

I have a bot made in C # connected to a Web Service. To make a request successfully I have to add several headers, can someone tell me how to do it?     
asked by 24.10.2018 / 17:52
2
answers

Reading two sensors in c # from arduino

I am sending data from arduino to Visual Studio using C #, I am sending the data from a proximity sensor, and now I also have to send the humidity and temperature sensor data, then how to differentiate the data corresponding to said sensor. us...
asked by 23.10.2018 / 22:29
1
answer

My object falls into a vacuum instead of using Lerp

I'm doing a runner-style game that is not generated randomly and I'm trying to program the Boss to come on stage and start the final fight. The game consists of an astronaut (player) who always stays on the screen (so, the background and the cam...
asked by 29.10.2018 / 08:58