Questions tagged as 'c#'

1
answer

How to optimize search for duplicate byte arrays in C #?

I have the following list of Objects: List<PacketData> packetList = new List<PacketData>(); public class PacketData{ public DateTime timestamp {get; set;} public byte[] data {get; set;} public bool isDuplicated {get; s...
asked by 10.03.2017 / 03:16
1
answer

Error generating classes with xsd

The Spanish Tax Agency (AEAT) has published a series of xsd for the new system of Immediate Information Supply (SII) that will come into force as of July 2017. On other occasions as with the entry into force of the SEPA I have generated my class...
asked by 14.02.2017 / 09:18
2
answers

Validate repeated identifiers with C #

I'm doing a chat with ASP .NET SQLServer. I want to validate to show the comment "hello greeting 1" once and then down their respective answers. The next image of the problem.     
asked by 13.02.2017 / 21:49
1
answer

Text field in custom user control as in the TextBox

I'm doing a custom user control. public class MiControl:UserControl { public string _Cadena{get;set;} = ""; ... } I add it to a windows.forms and in the properties window it shows me this to be able to assign a val...
asked by 31.01.2017 / 21:17
2
answers

Deserialize JSon

I have a problem when dezializing a json that I downloaded from a service. The structure of the json is as follows: "{\"d\":{\"tipo\":\"valor\",\"Id\":valor,\"Result\":valor,\"d\":\{\\"Nombre\\":[{\\"idnombre1\\":valor,\\"idnombre2\\":\...
asked by 04.02.2017 / 20:48
1
answer

Install ClosedXML in hosting

I'm developing in ASP.NET, C #. I have an excel file with a preset format and I'm using ClosedXML to open it and fill in the required information in the cells and then save it and be able to open it from excel. It works perfectly when I try i...
asked by 17.03.2017 / 14:22
1
answer

Access query with DateTimePicker type dates in C #

Good morning. I have a problem with my code. Does not understand the variables for a query between dates DateTimePicker . This is my code. public DataTable selcfecharegitro() { DataTable dt = new DataTable(); OleDb...
asked by 20.12.2016 / 13:43
2
answers

Change the color of a day in the Winforms Calendar control

I would be grateful if you could tell me if there is any way to change the color of a set of days in the Windows Forms Calendar control. It would be for the Framework 2.0 I have searched to see if there is any method or property that a...
asked by 01.12.2016 / 12:28
1
answer

How do I generate labels dynamically in my for each?

What I would like to do is a list of all my uploaded images, which are in a folder of my application, this folder already contains images and I would like to put them in a list of labels, until now my code is as follows: Code Listing Images:...
asked by 20.02.2017 / 20:02
4
answers

How to convert an image to base64 in ASP.NET MVC?

I have a WS that receives the following data: <token>string</token> <NroComputacion>string</NroComputacion> <NroCarnet>string</NroCarnet> <Foto>string</Foto> <Firma>stri...
asked by 26.10.2016 / 20:27