Questions tagged as 'c#'

1
answer

Transform Synchronous Method to Asynchronous

I have the following method: public string MyMethod1(string myParam1) { // Implementação return myReturnValue; } I needed to create an asynchronous method that did the same thing, to process multiple items in a list at the same time...
asked by 25.07.2017 / 15:20
1
answer

How to add property at runtime in a class already created C #

I need to add properties in the GridDataSourceBase class at runtime, can anyone help me how to do this? public class GridDataSourceBase : IGridDataSource { public long Handle { get; set; } }     
asked by 11.07.2017 / 01:17
0
answers

Create an ellipse / circle in unity + C # - using Point3D and VirtualDraw

I need to implement in an Unity project the creation of an ellipse. In the project there is already the "line" and "rectangle" creation code that works perfectly. The project is for a masters and teacher has already made available a "skeleton" o...
asked by 06.07.2017 / 16:34
1
answer

Incorrect mime for XLS files

I'm doing a migration of a certain system written in ASP.NET (site) and in a certain part of that system there is a place where a XLS file is uploaded. There is a check against the mime type of the file to see if it is actually an XLS...
asked by 14.07.2017 / 13:43
1
answer

Move button controls in a Windows Forms application inside a panel container

I have a form with three button controls, they are: btnSales, btnFunctionaries, btnConfig. And they are aligned inside a Container Panel. I need these buttons to be clicked and held by the mouse pointer so that the user can place them in the pla...
asked by 06.06.2017 / 04:10
5
answers

Schedule execution process in C #

I have an application that will be running 24h / day the 7days / week, that is, it will always be running. I need at a specific time, every day a method of this application is called.     
asked by 17.08.2015 / 15:40
1
answer

How to select multi-row information DataGridView C #

I've been messing with C # lately and am having difficulties. I want to get information from multiple selected rows in DataGridView , and, depending on the number of rows, pass this information to forms that will be displayed, as long as t...
asked by 04.07.2017 / 16:18
0
answers

Problem with Selenium x C # x Chrome

Good afternoon. I have a web application made in C #. I need to do a Selenium integration with another site and am having the following problems: When instantiating the webdriver to error chrome, it opens the browser but does not follow in th...
asked by 29.03.2017 / 21:19
0
answers

When running a service: the following error occurs. Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value [closed]

FrameWork 4.0 Code block that generates error var token = Configuracao.Config.TokenAgrometrika; if (Configuracao.Config.ValidateTokenAgrometrika > DateTime.Now) return token; var autenticacao = new Autenticacao() { Chave =...
asked by 29.03.2017 / 22:18
0
answers

Sql Server in C # using BindingSource

I'm in a project where I have a sale screen. When you make a sale, a method checks if the customer has an account. If he does not have it, he creates one for him, so far so good. But if the customer already owns this account, he needs to change...
asked by 17.08.2017 / 18:45