Questions tagged as '.net'

1
answer

Creating Properties, Summary, and Custom Colors for Methods and Types

Is there any way or attribute that places it on a Class, Method, Structure, or anything else that changes its color? Example of function CType : Noticethatitiscolored,anditsargumentsinsteadofCType(Expression,TypeName)AsTypegetsCType(<ex...
asked by 07.05.2015 / 22:14
1
answer

Malformed reference element: Digital Signature

I ended up having the same problem about a post already done here, however come a doubt next to what was posted in the article. What windows update would be to remove from the ones mentioned in this article ? (removal would be a palliative unti...
asked by 13.04.2016 / 21:00
5
answers

Print string in reverse

Why can not I print this string in reverse? I know there is a possibility of using a simpler form, but I want to understand the error. static void Main(string[] args) { string frase = "Diego lima de Aquino"; for(int i = frase...
asked by 19.10.2016 / 15:37
1
answer

Select GridView line with checkbox

function Selecionar(elemento,cordefundo) { var Inputs = elemento.getElementsByTagName("input"); var cor = elemento.style.backgroundColor; //manter a cor default do elemento for(var i = 0; i...
asked by 11.10.2015 / 21:30
4
answers

Changing app.config connectionStrings physically in runtime

In my app.config I have the following lines of code: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> </configSections> <connectionStrings> <add name="ControleBD"...
asked by 22.07.2014 / 16:26
2
answers

Pass generic list as parameter

Is it possible to pass a generic list by parameter? Ex: I have List<Pessoa> and List<object> . and I have my method: public void FaçaAlgo(List<T> lista) { } How can I get my method to receive both Lis...
asked by 29.04.2015 / 15:25
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
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

Customize MessageBox in C #

I have the following MessageBox MessageBox.Show("Deseja iniciar a forma automática?", "Atenção", MessageBoxButtons.YesNo, MessageBoxIcon.Question) Can I customize it? Instead of being the YesNo buttons, put...
asked by 04.11.2016 / 17:35
2
answers

How do I remove white space from text?

I was trying to get whitespace from a string , but .Trim() does not work, this still displays whitespaces: var teste = texto.Trim(); txtConteudo.Text = teste; For example, if it receives: "text text", it continues: "text text" eve...
asked by 07.10.2015 / 14:12