Most voted "textbox" questions
Textbox is a visual component of Web Forms technology, used to display text on an ASPX page, as in a form.
Learn more…94 questions
Sort by count of
-
12
votes4
answers7973
views -
7
votes2
answers498
viewsFill a textbox with combobox element
I have a combobox connected to a textbox by a function. It works like this: while the person type something in the textbox, a kind of 'filter' is automatically performed in the combobox, which shows…
-
5
votes3
answers1590
viewsHow to add or subtract a digit in the Textbox via a button?
I want to add to a number in a TextBox generating a digit when the user clicks the " + " button and subtracts when he clicks the " - ". For example: the random number was 2. If I click on +, 3…
-
4
votes1
answer2873
viewsHow to set today’s date as default value in a texbox as date input type?
I have a research page for a sales report and I use a textbox that generates a input type "date", and whenever the page loads the value of the field is "dd/mm/yyyy". I would like that whenever the…
-
4
votes4
answers13213
viewsTextbox accept numbers and commas
I need that one textBox accept only numbers and commas. To accept numbers I’m doing so: private void textbox11_num(object sender, KeyPressEventArgs e) { if (!char.IsDigit(e.KeyChar)) { e.Handled =…
-
4
votes1
answer884
viewsHow to fill out form from the combobox, with database information?
I used the code like this: <html lang="pt-pt"> <head> </head> <body> <?php $servername = "localhost"; $username = "isabelso_isabel"; $password = "password"; $dbname =…
-
4
votes1
answer267
viewsAccept only one comma in Textbox c# WPF
Hello I have my decimal textbox like this: <TextBox x:Name="TextBox" KeyDown="TextBox_KeyDown" Style="{StaticResource MeuTextBoxValor}" Height="23" Margin="1" Text="{Binding Peso,…
-
4
votes2
answers86
viewsProblem when changing field focus
I’m having a problem changing the input focus between the TextBox of my application. The problem is actually this: tb_Estados has a AutoCompleteMode = AutoCompleteMode.Append and a…
-
3
votes1
answer1530
views"Transparent" text in java
I wanted to do a text similar to this: This "transparent" text, when clicked it disappears and you can start writing in the dialog box... someone knows how to do it in Java? Help me, people, help…
-
3
votes1
answer339
viewsHow to use a Masked textbox for C#time?
I’m trying to create a Masked textbox that gets the time of a video. But I don’t know how to format the Masked textbox to get the time in HH:MM:SS:MMM. The value of the time I get from the video is…
-
3
votes2
answers280
viewsHelp with Textbox / string parameters
I have this method where I would like to bring the IBGE. When I put Textbox as a parameter, it usually brings it, but the problem is that I am using a Library and cannot import Textbox. So I…
-
3
votes2
answers114
viewsReturn original Textbox formatting
I have a method, which checks if a Textbox is filled, positive case follows normal, if it is blank, it displays a message on the screen, and paints Textbox background yellow, Here comes my doubt,…
-
3
votes2
answers411
viewsTextbox_changed is accumulating the sum value c#
I’m using the event textBox_Changed and when I type a value into the field, another textBox should receive this value, but this other textBox called ValorTotalVenda is accumulating this amount.…
-
3
votes3
answers944
viewsAdd Text In textbox at a certain position C#
Hello, I am developing a dental software which one of the functions is to select a tooth on a button and add the name of this tooth in a textbox. Until then no problem, but the point is that this…
-
3
votes1
answer1744
viewsHow to Validate Maskedtextbox?
I have a record field that mixes textbox common with maskedtextbox, created a validation code that does not allow the user to register if one of them is empty. But this only validates the textbox…
-
3
votes1
answer446
viewsC# - CPF Mask
I’m looking to put a placeholder effect on a masking text box. The idea is to activate the CPF mask as soon as it enters the text box and disable it if the text box is empty when exiting. private…
c# textbox desktop-application mask placeholderasked 5 years, 8 months ago Pedro Henrique de Lima 33 -
3
votes1
answer560
viewsTextbox masks value from 2 to 4 decimal places in WPF C#
I wish my Textbox had the following "mask" When I put two houses after the comma: 0,00 or when I put three: 0,000 or when I put 4: 0,0000 My code in WPF C# and the following: <TextBox…
-
3
votes1
answer1636
viewsTextbox returning different decimals in VBA
I have a very simple project, but I have a problem that I cannot solve. I believe the problem is something related to language settings, but all the changes I’ve made so far have not returned the…
-
2
votes6
answers6049
viewsHow to make a textbox that updates every time you change the content?
How do you make a textBox that updates in the database the values that are placed in it? That is, the textBox is filled in and the user decides to change what is there and wants it to trigger*…
-
2
votes1
answer987
views -
2
votes3
answers3702
viewsHow to get the dynamically created Textbox value?
I have a form that receives an amount of Textbox that must be instantiated, the page then generates the textboxes, but I do not know how to take the values. hd = Request.QueryString["qtHD"]; mem =…
-
2
votes1
answer460
viewsReceiving several Textbox values
Need to edit multiple records simultaneously, more specifically a list of students and load/edit from several textboxlinked to such. Basically I need to give/take their presence. How could you…
-
2
votes2
answers9820
viewsCharacter string not recognized as valid datetime
protected void ButtonPesquisar_Click(object sender, EventArgs e) { var _macro = new LFSistemas.VLI.ACTWeb.Entities.Macro(); var macroController = new MacroController(); var itens =…
-
2
votes2
answers1618
views -
2
votes3
answers641
viewsAdd zeros right Textbox C#
I have a TextBox which only accepts decimal numbers. But sometimes the user does the following: How to do for the event Leave of TextBox it add the two zeroes to the right, in the case of the image…
-
2
votes2
answers477
viewsValidation of Textbox
I have the following piece of code that limits a TextBox receivable only numbers and comma: private void txtTempoAcel1_KeyPress(object sender, KeyPressEventArgs e) { if (!Char.IsDigit(e.KeyChar)…
-
2
votes1
answer836
viewsHow to start a textbox with a value of 0 (zero)?
I have a form created with Windows Forms, and in this form I have textbox who will receive numbers. How do I make this textbox, when initializing, is already filled with value 0, that is when I open…
-
2
votes1
answer199
viewsSending shortened date does not work abbreviated Asp.net mvc
I am creating a form in ASP.NET MVC and, creating the field "Datamessage", I initially put Textbox to load a date with the month in full, as below: Image of the form with the field "Date of the…
-
2
votes1
answer405
viewsBring a newly added ID to put in a textbox c# windows form
I request a help to do the following, I do an Insert via Procedure after saving I want to fill the textbox with the id created so I can use it to associate to my item I just need the order code to…
-
2
votes1
answer90
viewsSelect text in front of the current text using Textbox
I need that when a person type a word, automatically fills in front of the Textbox. This is the DEFAULT text For Example: sdfdsfasfColor this text in Textboxsdfdsassdf When I fill a piece of the…
-
1
votes1
answer606
viewsChange a Textbox to Multiline while maintaining CSS
I have a web application with several Textboxes. However, I need some of them to stay with Multiline because of the text they will contain. Every time I make this change I lose CSS settings. From…
-
1
votes1
answer120
viewsValidation of Textbox in Visual Basic 6
How do I validate the textbox to enable or disable a button? That’s the code I’ve made so far. If IsNumeric(txtPedidoCotacao.text) Then cmdMontaPedido.enabled = True cmdCancelar.enabled = True…
-
1
votes1
answer1481
viewsDisplay HTML text in ASP Textbox?
I’m trying to show a text formatted in HTML in a asp text box and I’m not getting. For example this formatted text: <font size="6">teste</font>, I would like when you display this text…
-
1
votes1
answer54
viewsTextbox with editing
I have a textbox And I wish I could edit the text on it. For example, I wish that on the website I could write in the textbox the following text: "This is a test!" And that could do, by clicking…
-
1
votes2
answers264
viewsEnable Keypress in Panel C#?
I have an app and it works like this. I have a code to create TextBox dynamically when the maximum amount of letters in the TextBox1 for 2. Here is the code: private void VerificaTextBox(int…
-
1
votes0
answers299
viewsBinding in Textbox with Datagrid (WPF)
I have a Textbox where you get the customer id and I also have a Datagrid where he has some personal information. Well so far so good, what I’m not getting is to connect the two in the following…
-
1
votes1
answer188
viewsFormat Textbox with date
I have here a form with several textbox and some combobox. What happens when I insert a code and fill the textbox with birth date appears to me in this format 01/01/1900 00:00:00 and I just want the…
-
1
votes2
answers1778
viewsTrigger event when changing value of a textbox C#
Guys, 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 triggers the event. I need…
-
1
votes0
answers84
viewsUpdate with textbox and combobox
I am unable to record my data when I write it in the textbox and when I choose the value in the combobox.. I don’t understand what’s wrong with it, can you check it out? Thank you Imports…
-
1
votes0
answers47
viewsReferencing parts of an external program C#
I need to reference the input (textBox) login from a program running on my PC. You would know how to tell me how to do this? I need to capture the login typed in the external program by my program…
-
1
votes3
answers82
viewsJavascript - Function problem that adds textbox
On my PHP and Javascript page, I created a space that contains two Textbox and a clickable label to add more Textbox, if necessary, to div numPart: <div id="numPart"> <div…
-
1
votes1
answer48
viewsCheck Text Box character to mark on a radiobutton
I would like to know how to check whether the letter filled in a textBox is A or B as the result Checked in a RadioButton.
-
1
votes2
answers1520
viewsParameter in bold C#
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?
-
1
votes2
answers69
viewsText box to determine amount of digit usage
Below follows the code I am trying to limit the use of letters in the text box, the exception of the comma, but it occurs that the comma can be typed a hundred times, I would like the comma to be…
-
1
votes1
answer63
viewsHelp on Printpage in c#
What are the processes to place a watermark (image) in the form that will be created by c# private void Imprimir_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { Font fonte =…
-
1
votes1
answer79
viewsReceive date from datapicker
I am creating a site where I have a datapicker using the following website I wanted when I was going to save to fetch the date that was chosen from the datapicker that appears instead of the date of…
-
1
votes1
answer53
viewsPerform action in all textboxes without having to repeat for each one (C#)
Well, I have a Windows Form program with 35 textboxes,and I want to perform the following action on all of them,: private void txtGSabado5_TextChanged(object sender, EventArgs e) { if…
-
1
votes1
answer35
viewsHow to make an internal calculation in Textbox?
I need to calculate a value entered in Textbox and this value I enter is multiplied by 9,81. So all the numbers I insert in this Textbox will be multiplied by 9,81 and you will have to show me the…
-
0
votes2
answers692
viewsI cannot call Javascript function in textbox
I have the following java script function to format my date fields: function MascaraData(data){ if(mascaraInteiro(data)==false){ event.returnValue = false; } return formataCampo(data, '00/00/0000',…
-
0
votes1
answer694
viewsHow to get the value of the textbox?
I want to get the value I’m gonna write on my textbox. All on the same page to then change a table field by the value inserted in textbox. <form method="POST" action="#"> <input type=text…