Questions tagged as 'c#'

1
answer

Draw figure in Panel with Bitmap, C #

How can I draw these specific figures on the panels? I have two panels to which I want to draw these two figures:    A figure in each one, could put the image as such in the background property BackgroundImage of the panel,...
asked by 18.01.2018 / 15:59
1
answer

Problem when downloading .xlsx in Chrome Error: network error

When I want to export a list of type IEnumerable from Chrome it gives me an error that says "Error: network error". I try it in Firefox and it's ok, download the file. Someone will know how to solve this, or have an alternative (another method t...
asked by 25.01.2018 / 23:09
1
answer

How to generate GS1 Bar Code in .Net Framework 4.0 c # [closed]

I need to generate GS1 barcodes in C # .Net 4.0 Any help would be very helpful.     
asked by 05.01.2016 / 11:01
3
answers

filter data in the datagridview that is already loaded c #

I currently have a grid that is automatically filled when I open the form, but when writing in the txt (code of the extinguisher) I need to filter in the grid depending on the id_extintor with the data already loaded in the grid (without c...
asked by 24.10.2017 / 21:44
1
answer

Use of AddressOf in C # without delegates

I have an external dll that I have to use in C #. This external dll has a method to which a pointer to a method of my code is passed. In the old code the function AddressOf of VB was used but now I have to do it with C #. All I've read is using...
asked by 19.10.2017 / 15:56
1
answer

Incorrect datetime value in MySQL

I was trying to register using a query in c # the datetime.now in a MySQL database What I do in c # is: cmd.CommandText = "INSERT INTO cola_llamadas(fecha,queueName,cola)" + "VALUES(DATE_FORMAT('"+DateTime.Now+"', '...
asked by 24.10.2017 / 16:48
1
answer

Store files from a directory in array

I have to store the files of a directory in an array and then traverse that array. System.IO.DriveInfo dirOrigen = new System.IO.DriveInfo(ruta1); System.IO.DirectoryInfo dirOrigenInfo = dirOrigen.RootDirectory; System.IO.FileInfo[] fileDirO...
asked by 02.10.2017 / 11:04
1
answer

Convert Binary Files to Text

Hello, I'm looking for help with a little problem I have My question is how can I convert the text that contains a file.txt to binary and vice versa I understand that using the BinaryWriter class I can convert text to binary in case with w...
asked by 01.10.2017 / 10:05
1
answer

How to use a permanent token with Http POST in REST services

Good morning, I'm trying to do a POST of a Json with a permanent token, but it always gives me error 401 unauthorized , code: public static async Task<Uri> CrearitemAsync(Item item) { using (var client = new HttpClie...
asked by 26.09.2017 / 16:30
2
answers

Crystal Reports Throw "E_NOINTERFACE" when you report.SetDataSource (ds);

Throw the Exception when creating a Report and pass it a Dataset : DataSet ds = new DataSet(); ds.Tables.Add(tabla); tabla.TableName = "tablename"; Rpt.MyRpt reporte = new Rpt.MyRpt(); reporte.SetDataSource(ds); The exception happe...
asked by 16.11.2017 / 20:28