Questions tagged as 'c#'

1
answer

ASP.NET Core Script-Migration: The term 'Script-Migration' is not recognized as the name of a cmdlet

In ASP .NET core , when I run the Add-Migration InitialMigration command in Package Manager Console I see this error: Script-Migration : The term 'Script-Migration' is not recognized as the name of a cmdlet, function, script file, or...
asked by 05.12.2018 / 22:46
0
answers

How to avoid blinking by constantly redrawing figures

I have been working on a graph editor for the university in which I have to constantly redraw several figures, when I do it it seems that the figures are blinking, I was reading and I found a control called BoubleBuffered but I did not understan...
asked by 18.06.2018 / 17:28
1
answer

Deny permission to users except the C # compiler

I'm doing an application with a very basic little module of self-protection at the level of user security but I do not know how to take away the permission of the current user who does not write in the folder but if the application does, for exa...
asked by 05.07.2018 / 23:25
1
answer

read excel correctly in C #

I have a problem that I have not been able to solve, it turns out that I am uploading an excel from a mvc application I capture it and I read it to a datatable until everything is perfect but it turns out that the excel is in Percentage format (...
asked by 05.07.2018 / 18:39
1
answer

LinQ: show list of parents and children who depend on a model value

I have two models, Category and ExternalResources: Category public partial class Category { public long CategoryID { get; set; } public string Name { get; set; } public Nullable<long> ParentCategoryID { get; set; }...
asked by 21.05.2018 / 16:04
1
answer

Save the DataGridView fields in an XML

I have a small problem that I can not solve, I have a GridView with 3 specific columns, what I need is to save those 3 columns in an XML and I can not do it. The xml that I want to form is more or less like that. <?xml versi...
asked by 15.05.2018 / 19:20
0
answers

How to update data from a DataSet?

My problem is that I can not update the data in my registry, when I modify a data and I give it to save, it generates the following error:    System.InvalidOperationException: 'Update requires UpdateCommand to be valid when the DataRow collec...
asked by 31.10.2018 / 00:10
0
answers

AES encryption in java and AES decryption in c #

I hope the question is not redundant, and you can help me. I am creating an application that can connect to a webservice. in the application I ask for a user and a password which I must encrypt with the AES algorithm, this encrypted data arrives...
asked by 28.06.2018 / 16:49
1
answer

Delete all tones of a bitmap color c #

Hi, I'm trying to delete all the orange tones of an image saved in a bitmap, I need to do OCR on the image with tesseract and the orange color of the scanned document seems to hinder the process producing errors in the text, I tried removing the...
asked by 31.03.2018 / 05:06
0
answers

Clean datagridview connected to data c #

Well I'm making an invoice which is that the invoice consists of two tables detail purchase and purchase she keeps and everything perfect! My problem is that when I save correctly if I want to return an invoice without closing the form, the prod...
asked by 03.04.2018 / 11:20