Questions tagged as 'c#'

2
answers

Sending information between PC (Windows Form, C #) and Android [closed]

I started to draw up a project schematic, and as an idea I had to have several Androids devices sending data to a computer (I plan to do it using Windows Form - C #, and maybe Xamarin for the Mobile part). I ended up wondering how best to sen...
asked by 02.01.2018 / 04:43
1
answer

Performance ItextSharp

I am doing the reports using iTextsharp and the result has been acceptable, however when working with many records it has become slow. Currently I do this: I get the bank data (storing in DataTable ); In a foreach concatenate...
asked by 16.12.2017 / 14:32
1
answer

How to reuse the Click event of a button in another method?

I have the event Click btnReabrirCaixa_Click and would like to reuse the process that has within that event in a ValidarAberturaCaixa() method, without copying and pasting all the code, how could this be done?     
asked by 14.12.2017 / 17:35
2
answers

Go through a list of characters

I have a method that checks the amount of characters in a string , and separates them into variables with the information as it can be seen in this example . The problem is when you have a list of data in string . This data will always...
asked by 13.03.2015 / 18:15
1
answer

Is it possible to omit the numbers of the formatting arguments of "String.Format" in C #?

I was seeing that in Python it is possible to format an unnumbered string the arguments . Example: #mensagem = "Meu nome é {0} e minha idade é {1}"; mensagem = "Meu nome é {} e minha idade é {}".format("Wallace", 27) print(mensagem);...
asked by 06.12.2017 / 15:29
1
answer

Conflict of reference Google.api

I have a referral conflict problem in the Google API. In my API classes I always rename it as follows: SiteTeste.APIS.Google.<Servico> , where service is, Gmail, Translate, Drive or whatever. Google Translate I name it: n...
asked by 16.11.2017 / 20:40
1
answer

SSLStream - Certificate

1 - To make secure communication between a client and a server, I decided to use SSL using SSLStream, from
asked by 10.06.2014 / 14:59
1
answer

Questions about column formatting in the gridView

Hi, I have some questions about formatting columns in a gridview, I have a gridview that populated by data coming from a table in the database, the columns and row are automatically generated, I have a method that performs the query in the gridvi...
asked by 15.06.2014 / 22:14
2
answers

Send file from one server to another

The application is located on an X server. From a file upload I need the file to be sent to a Y server. But I can not find a solution for this. The application is in MVC asp net. To upload the file to the same server I use: [HttpPost]...
asked by 09.06.2014 / 18:31
2
answers

How to decode a Base64 image

I'm trying to decode an image, the string that comes as a parameter in the Image attribute of the post object is like this: "data: image / png; base64," and a bunch of letters, numbers, and symbols on the right, I want to decode and get the o...
asked by 09.06.2014 / 21:29