Questions tagged as 'c#'

0
answers

How to avoid Paper feed [closed]

Hello, I'm using a non-fiscal Engeworks thermal printer to print payment vouchers, I'm using the Generic Text Only driver. The problem is that it prints the vouchers as if they were whole pages and I wanted it to print only what was needed, f...
asked by 03.08.2015 / 14:30
2
answers

How to optimize an image for web?

On my site someone uploads an image (eg 800x600). I would like to save this image to a folder, but reducing the size to disk as much as possible without losing much quality. How can I do this?     
asked by 15.12.2013 / 18:01
3
answers

Format integer value in format "000"

In vb6 I used the following line of code that allowed to format the value "1" to "001" Format$(Nivel, "000") In C # I'm using the following with similar nomenclature. string.Format("000", 1); However, the return value is always "00...
asked by 13.03.2018 / 15:05
3
answers

How to change date format in bootstrap from mm / dd / yyyy to dd / mm / yyyy

This is the error you are giving:   Uncaught TypeError: Can not set property 'pt-BR' of undefined Insert some links to format the date, second time I picked up the net and even then the date is still wrong (another format) and I got this...
asked by 03.07.2014 / 21:36
3
answers

Problems with double formatting

I have a method that receives values of type string and performs the conversion to other types, my problem is that when converting an information to double it changes its precise value that this does not happen. For example, I get...
asked by 13.06.2014 / 05:00
2
answers

Monetize Windows Forms C #?

Hello, sorry for not being a question directly linked to a language, but I searched a lot and did not find it, does anyone know of any library like Ad Mediator to use in Windows Forms? How do I monetize / place ads in my forms software? Can you...
asked by 18.09.2015 / 22:57
2
answers

How to extract only numbers from a string?

I want to extract only the numbers of a CPF that is in a string in that format;    111.222.333-44 You only have to return:    11122233344     
asked by 15.07.2014 / 19:51
2
answers

Catch the index of a value in an array

How do I get an index of a value from my array ? For example: char[] letras = new char[]{'a','b','c','d'}; In letras , I would like to get the index of the value b for example. How do I do this in C #?     
asked by 01.09.2018 / 15:03
5
answers

Search for court data on the TJSP website

I am developing an ASP.NET application with C # that will need to consult the online legal process moves. So far the only way I have found to get this information was to do the direct query on the website of the Court, make the parse of the HT...
asked by 08.08.2014 / 23:26
3
answers

Recognize duplicate items in a list

I'm getting a list of items in my action public ActionResult New(List<Itens> Itens) { return View(); } How do I recognize which items are duplicates in this list?     
asked by 27.03.2015 / 22:08