Questions tagged as 'c#'

2
answers

How can I save and then read UserControl that were created dynamically, at run time? in C #, WindowsForms

I need to know how and where is the most optimal way in which I can go GUARDING controls (Buttons, Layouts, Label etc) , and mainly also UserControl that were created in time of execution. The funny thing is that ONCE THE PROGRAM I...
asked by 17.06.2018 / 04:27
1
answer

How do I delete a Row from a DataGridView?

I comment on my problem, I have a DataGridView where I enter items to make a sale, this is done by typing the code in the first column and using the CellValidating method control that the product exists in a database, that is, in total I have 7...
asked by 20.04.2018 / 15:57
1
answer

Deactivate event cellendedit datagridview

I have a DataGridView that gets me values from a SQL Server table, I select a product and when I give click to the next cell, I get its price, this is generated with the event CellEndEdit , but I require change the pri...
asked by 19.04.2018 / 18:27
1
answer

filling list with foreach c sharp and .net

I have the following code in which I add items to a list by foreach this is my code: var archivosguardados = new List<Archivos>(); foreach (var a in modelArchivo) { FactoryClass.ArchivoModelToAr...
asked by 19.04.2018 / 21:36
1
answer

Change Selected Row of a DataGridView with Code in C #?

Good evening to the whole community, my problem is that I have a DataGridView containing name of dishes, and two buttons one that will select the row above the row that is currently selected (if there is one more above) and another that s...
asked by 16.04.2018 / 02:35
1
answer

Xamarin Java.Lang.IllegalArgumentException: No view found for id

Hello friends, I am receiving a Json in my app in Xamarin but when I try to receive 2 int parameters, this error appears. ..    Java.Lang.IllegalArgumentException: No view found for id 0x18 (unknown) for fragment FragmentContainer {a5f3...
asked by 28.03.2018 / 21:30
1
answer

How to upload files in MVC C # on the cell phone?

I am making a form in which you have to take a picture and answer on a cell phone. I have researched the best thing that I found is to use HttpPostedFileBase but I get the null parameter on the Internet I have seen examples with only the image b...
asked by 09.04.2018 / 18:21
1
answer

MVC C # create file and save it

Friends I am trying to create a txt and save it in my project, but I have some problems, I did something similar a few days ago with the difference that it is already a file to my method, in this I'm just creating it but I have problems to save...
asked by 18.05.2018 / 23:09
1
answer

The 'AsyncChromeDriver 0.4.3' package could not be installed

I am trying to install the package 'AsyncChromeDriver 0.4.3' with NuGet but at the time of finishing the installation it throws this error:    The 'AsyncChromeDriver 0.4.3' package could not be installed. Is   trying to install...
asked by 18.04.2018 / 19:30
1
answer

How to avoid closing a modal after executing the event of a button (within the modal)?

I have a bootstrap modal which contains a textbox and a numeric keypad inside, so when you click on a button you must "write" the number of the button in the textbox. The problem is that when you click any button (from the modal keyboard), the m...
asked by 26.03.2018 / 17:02