Questions tagged as 'c#'

1
answer

How to capture a key pressed in C #

I have an application with digit buttons and I want to capture the keystrokes and execute the events of those buttons. I added an event of keypress in the window and tried to capture the key typed, but I could not. Code: private void...
asked by 01.03.2018 / 18:53
1
answer

Does not display data on Api web screen asp.net mvc

I started to study a little web api using with asp.net, I am doing a very simple example where I just want to list the data of the employee table, but I get error: No MediaTypeFormatter is available to read an object of type 'IEnumerable'1' fro...
asked by 02.03.2018 / 00:57
1
answer

Error Open.CV save file

Good morning, I have the following code: var faceImage = new Image<Gray, byte>(new Bitmap(bm)); imagensFace[i] = faceImage.Resize(100, 100, Inter.Cubic); faceLabels[i] = todasFaces[i].ID; }...
asked by 05.11.2017 / 14:08
2
answers

Convert DataTable to List C #

I need to convert the contents of DataTable to List , I'm new to C # and I do not know the syntax. public List < VoCliente > ConsutaCliente() { DataTable tabela = BDOracleCliente.ConsultaCliente(); List < VoCliente >...
asked by 07.11.2017 / 13:24
1
answer

Service stopped working while generating the graph

I was having problems with generating a chart, which is solved. The code below was ok and suddenly stopped, ie the service is not running on account I do not know what. When I call GetService nothing comes up, the var itemsgrid remains null...
asked by 24.10.2017 / 13:12
1
answer

Load ComboBox with concatenated string [duplicate]

Code that loads comboBox : private void frmAdicionarProdutos_Load(object sender, EventArgs e) { this.Load += new System.EventHandler(this.frmAdicionarProdutos_Load); string serverName = "localhost";...
asked by 24.10.2017 / 14:06
1
answer

When using Boleto.NET do I need to mount the consignment file manually?

In a financial system already built by another developer, the Boleto.NET library was used to generate Itaú tickets. I would need to add Santander's ticket generation support, but I can not figure out how to use the library at all. The code of...
asked by 18.11.2017 / 17:57
2
answers

Select row from a gridview and pass values to a textbox

I'm having problems trying to find a solution so that when I click on a grid view, it passes the values contained in the line to text boxes. My gridview is populated, but I need to find a solution so that when I click the row, it executes a f...
asked by 17.11.2017 / 18:23
1
answer

Conflict between objects of the same type in the Entity Framework

I have the following class: public class Conteudo { public long Id { get; set; } public string Categoria { get; set; } public string SubCategoria { get; set; } public string Descricao { get; set; } public string Status { g...
asked by 20.10.2017 / 16:04
1
answer

Send parameters to Restfull services [closed]

I have a mvc web application and I have an action that should pass a parameter to a REST service. How do I pass a parameter to a REST service. I know I will have to implement an HttpPost, but how? Anyone know of a tutor who can help us? EDIT...
asked by 18.10.2017 / 19:50