Questions tagged as 'c#'

1
answer

Calculate Values of a list

I have a problem which is as follows: I have a list that stores the products of a supposed lease in a variable and includes in a table named ItensReserva . I need to add the values of these items to play in textbox which will...
asked by 31.10.2016 / 20:50
1
answer

Export List to Excel

I have a list and would like to export to Excel, this code is bringing the records correctly, it just does not export the file. Do I need to add something else or would I have another way? CorpDAO dao = new CorpDAO(); List<CorpCR...
asked by 04.11.2016 / 15:23
1
answer

How to generate Microsoft Excel spreadsheets in .NET Core?

I need to generate Microsoft Excel spreadsheets through .NET Core , is there any library that does this? In my searches I could only find Microsoft's own Open XML SDK , but support for .NET Core is still under development.     
asked by 26.11.2016 / 23:11
2
answers

Comparing Fields of Multiple TextBox to Check for Duplicity

I'm developing a basic program in C # where the user will enter values through a bar code reader. The same will be saved in an Excel spreadsheet for a future report. My problem is that there are situations where the user bipes the same code t...
asked by 21.10.2016 / 20:51
2
answers

How to tell if a process is running on windows using c # or .bat?

I'm trying to create an application that runs in the background and monitor some service to see if it's running or could someone give me a light?     
asked by 10.10.2016 / 03:15
1
answer

Concurrent Use in Asp.net Applications [closed]

I'm starting to study programming in asp.net mvc (and trying to follow the DDD) and with that, I had a question about competing use: Asp.net already performs this control for me or I'm the one who should to control this with Threads in all that...
asked by 12.10.2016 / 18:33
1
answer

Create a get / set for the cpf string, which verifies that it has 11 digits, being they numbers?

private static string cpf; public bool CPF = cpf.Length == 11 && cpf.All(char.IsDigit); public string Cpf { get { return cpf; } set { if(CPF)...
asked by 03.03.2017 / 06:27
1
answer

How to use an iOS simulator in a Windows 10 environment for an iOS Xamarin.Forms project

What do I need to install to publish a project Xamarin.Forms.iOS in an iOS simulator? I'm using a machine with: Windows 10 Visual Studio 2015 Whenever I try to run a project from Xamarin.Forms.iOS it appears a message: No remotely accessib...
asked by 02.03.2017 / 16:56
1
answer

Error Making CodeFirst in EnityFramework

This is the error that is occurring:   An unhandled exception of type 'System.TypeInitializationException'   occurred in EntityFramework.dll Additional information: O   initializer of type 'System.Data.Entity.Internal.AppConfig'   has thrown...
asked by 15.11.2016 / 18:08
1
answer

Hide form when pressing key

I created a form, I do not want to use minimize or maximize button, I want to use for example when pressing "F1" my form is hidden and press F1 again it reappears. I tried this, but without success: private void Form1_KeyDown(object...
asked by 15.11.2016 / 03:00