Questions tagged as 'textbox'

2
answers

Enable KeyPress in Panel C #?

I have an application and it works like this. I have a code to create TextBox dynamically when the maximum number of letters in TextBox1 is 2. Here is the code: private void VerificaTextBox(int contador) { for...
asked by 18.01.2015 / 20:54
1
answer

Changing a TextBox for Multiline while maintaining CSS

I have a web application with several TextBoxes. However, I need some of them to stick with Multiline because of the text they will contain. Every time I make this change I lose the CSS settings. From what I've researched it seems to me that the...
asked by 01.07.2014 / 13:23
1
answer

Format TextBox with date

I have here a form with several textbox and some combobox. What happens when I insert a code and populate the textbox with birth date appears to me in this 01/01/1900 00:00:00 format and I just want the date to appear. Can you help me?...
asked by 22.12.2014 / 16:20
2
answers

Text box to determine amount of digit usage

Below is the code that I am trying to limit the use of letters in the text box, except for the comma, but it happens that the comma can be typed a hundred times, I would like the comma to be used only once. How is it correct? private void tex...
asked by 17.12.2017 / 14:52
2
answers

Trigger event when changing value of a textBox C #

Well, I'm starting in C # and I'm having a problem. I'm working with Windows form. I'm using the TextChange event in a textbox, and with each key pressed in the field it fires the event. I need the event to be triggered only when the field value...
asked by 12.04.2016 / 14:29
1
answer

Textbox with editing

I have a textbox and wanted to be able to edit the text in it. For example, I wanted the site to write the following text in the textbox: "This is a test!" And what you could do, by clicking buttons, for example, the following edition:...
asked by 16.07.2015 / 12:24
1
answer

Validating TextBox in Visual Basic 6

How can I make a validation in the textbox to enable or disable a button? That's the code I've done so far. If IsNumeric(txtPedidoCotacao.text) Then cmdMontaPedido.enabled = True cmdCancelar.enabled = True CmdAutoriz...
asked by 26.03.2015 / 16:13
1
answer

Receive date from the datapicker

I'm creating a site where I have a datapicker with the following site I wanted it to save when fetching the date that was chosen from the datapicker that appears instead of the date of the textbox.     
asked by 02.05.2018 / 13:03
1
answer

Help on PrintPage in C #

What processes to put a watermark (image) on the form that will be created by C # private void Imprimir_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { Font fonte = new Font("Arial", 30, FontStyle.Bold,...
asked by 29.12.2017 / 00:21
0
answers

Referencing parts of an external program C # [closed]

I need to reference the login input ( textBox ) of a program that is running on my PC. Would you be able to tell me the way to do this? I need to capture the login entered into the external program by my program in Visual Studio.    ...
asked by 08.05.2016 / 18:30