Questions tagged as 'c#'

1
answer

Check the existence of a file

This is my problem, in c #, the code generates txt files, I am creating a control panel that verifies the creation of these txt, with 1 if it exists and 0 that does not exist, the problem that arises is that once it finishes verifying the creati...
asked by 22.06.2017 / 19:25
2
answers

Linq to SQL vs. Entity Framework

What is the difference between Linq's SubmitChanges and Entity Framework%% co? WTablasDataContext.AfipEscalaSuss.Add(obj) WTablasDataContext.AfipEscalaSuss.SubmitChanges(obj)     
asked by 06.09.2017 / 15:39
2
answers

Extract emails within a text string

I need to get the list of emails from a text string. I have tried several ways and nothing turns out. If anyone of you could help me, I would really appreciate it. Here is my code: string patern = @"\[A-Za-z]+@[a-z]+\.[a-z]+\"; string input...
asked by 01.06.2017 / 18:45
1
answer

Set priority on an application in c #

Hi, I was trying to lower the priority of my application in order to limit the consumption of resources but at the moment I do not know very well if lowering the priority could avoid it. As I did not work, I thought of putting it as a thread and...
asked by 01.06.2017 / 14:46
1
answer

ASP MVC Multiple Form

I have a model called Pregunta which contains a list of another model called Alternativa . I need that when creating a question, the user can select how many alternatives to add to that question and display a dynamic form according...
asked by 04.06.2017 / 15:58
2
answers

how can I fix this error in c # [closed]

static double LeerAños() { int az; Console.WriteLine("Ingrese los años que se le daran de plazo"); az = int.Parse(Console.ReadLine()); while(!(az >= 2 && az <= 7)) { Console.WriteL...
asked by 13.05.2017 / 02:51
2
answers

How to Change BackColor of Cell in DataGridView?

I have this arrangement: Color[] colores = { System.Drawing.Color.White, System.Drawing.Color.WhiteSmoke, System.Drawing.Color.Yellow }; and on the other hand, I have a DataGridView that will alway...
asked by 15.05.2017 / 22:01
2
answers

Download a file with angularJS and c #

I have a question. I need to know how to download a file with angularJS and C # MVC . I already managed to save the file in a separate route, but when downloading I do not know how to recover it. I understand that it is by method GET...
asked by 04.04.2018 / 22:45
2
answers

Background sound of Form

I have a method; public void SonidoAmbiente() { sonidoEntradaCarga = new SoundPlayer("Resources\Sonidos\ambient.wav"); sonidoEntradaCarga.PlayLooping(); } that I launch when starting my application, the au...
asked by 06.04.2018 / 14:44
2
answers

Create a view object of two different tables using entity

I need to return a DataView in Edit view but the view is filled with two different tables. What I need is to know how to return an object PatientView of my two tables, patient and people This is the Edit...
asked by 02.07.2017 / 04:00