Questions tagged as 'c#'

3
answers

SQL Query export to excel

Good, I have some difficulties in the result of a query. For you to fit it is as follows, I have a registration application of "unavailable." and I need the following: Every day I have to extract a report from the previous day, however thi...
asked by 16.09.2014 / 14:56
1
answer

How to make the drawing of control objects faster in a C #

In a form, in C # for desktop, constant movements of certain controls occur. In case I'm using PictureBox type objects, however, its rendering is very time-consuming. Is it recommended to use another control object for this? And how can you make...
asked by 10.09.2014 / 19:04
1
answer

Where to place the asynchronous request methods following the ASP.NET MVC standards?

I've always put it on View Controller, is it the most correct way to do it? I came to doubt because I realized that I am filling my view of asynchronous methods, and I would like to leave it all separated so that I do not get lost. I've never...
asked by 28.09.2017 / 16:03
1
answer

Doubt when deserializing objects JSON C #

asked by 28.09.2017 / 03:49
1
answer

What exactly does the Application.DoEvents () method do?

According to Microsoft help , the Application.DoEvents () :    Process all Windows messages that are currently in the message queue. But what does that mean? Why does he say messages? What line is this?     
asked by 02.10.2017 / 20:08
1
answer

Data manipulation in excel

I need to get the data generated from a proc save to some variable and make a UPDATE into a worksheet that already exists on a fixed path in the system. Is it possible to do this process via code? Ex. The procedure returned this...
asked by 04.10.2017 / 18:06
1
answer

Using async with .NET Core and nHibernate

In the .NET Core I know that we have async and await to request async . So far so good, but many frameworks on the market are creating methods with the MetodoAsync() signature and have the method without being async M...
asked by 09.10.2017 / 13:33
1
answer

How to create a filter with all products in the second list, except with the products that returned in the first list [duplicate]

Perform a filter with the products in the second list, except those that were brought in the first list List List<string> listaProduto = new List<string>(); listaProduto.Add("Arroz"); listaProduto.Add("Feijão"); listaProduto...
asked by 03.11.2017 / 19:20
1
answer

Convert dynamic to query string

Is there a more "elegant" way of converting a dynamic to a query string ? I'm currently doing with several Replace() but it's not quite what I wanted. string data = new { email = email, password = password } .ToString...
asked by 05.11.2017 / 13:52
1
answer

Get values separated by spaces in C #?

I want to get the values, for example, 79 201 304 and store in a vector each number in a position. Example: int array[0] = 79; int array[1] = 201; int array[2] = 304; public static int Descriptografa(string txt, int p, int q, int d, int...
asked by 07.11.2017 / 15:45