Questions tagged as 'textbox'

1
answer

How to put today's date as the default value in a texbox as input type date?

I have a page to search for a sales report and I use a textbox that generates a input type "date", and every time the page loads the value of the field is "dd / mm / yyyy". I would like that whenever the page was loaded the fiel...
asked by 03.09.2015 / 16:23
2
answers

Help with parameters TextBox / string

I have this method where I would like to bring IBGE. When I put the TextBox as a parameter, it usually comes up, but the problem is that I am using a Library and can not import the TextBox. So I replace the TextBox with a string, but that way it...
asked by 29.07.2015 / 13:19
3
answers

Reading XML NFe?

I'm doing an XML reading from Nfe however, I'm currently reading and playing in a txt , but I can not read those tags below: <?xml version="1.0" encoding="UTF-8"?> <nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="2....
asked by 16.12.2014 / 17:05
4
answers

TextBox accept numbers and commas

I need a textBox accept only numbers and commas. To accept numbers I'm doing this: private void textbox11_num(object sender, KeyPressEventArgs e) { if (!char.IsDigit(e.KeyChar)) { e.Handled = true;...
asked by 30.08.2016 / 13:18
2
answers

Validating TextBox

I have the following code snippet that limits a TextBox to receive only numbers and commas: private void txtTempoAcel1_KeyPress(object sender, KeyPressEventArgs e) { if (!Char.IsDigit(e.KeyChar) && e.KeyChar != (char)8 &...
asked by 23.01.2017 / 15:05
2
answers

Bold parameter C # [closed]

I have the following string: string frase = string.Format("A data de hoje é: {0}", DateTime.Now.Date); Is there any way to make the parameter bold?     
asked by 30.08.2017 / 14:57
2
answers

Create textboxes at runtime

I have a project that basically is a program that calculates the electricity consumption of various equipment that I am creating in VS2013. The problem is that since I do not want to put just one piece of equipment or a limited quantity, I wa...
asked by 27.06.2016 / 18:11
2
answers

String was not recognized as a valid DateTime

protected void ButtonPesquisar_Click(object sender, EventArgs e) { var _macro = new LFSistemas.VLI.ACTWeb.Entities.Macro(); var macroController = new MacroController(); var itens = macroController.ObterTodos(new Entities.FiltroMacro(...
asked by 22.09.2014 / 20:31
1
answer

Limit the number of rows in a textbox

Is it possible to limit the amount of rows in a% multiline% by using C # .NET 3.5?     
asked by 07.02.2014 / 18:47
1
answer

How to start a textbox with value 0 (zero)? [closed]

I have a form created with Windows Forms, and in this form I have textbox that will receive numbers. How do I make this textbox , when initializing, already filled with value 0, that is when I open the form, textbox alread...
asked by 01.09.2017 / 14:47