Questions tagged as 'textbox'

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
1
answer

Fill a textbox with element of a combobox

I have a combobox connected to a textbox by a function. It works like this: while the person types something in the textbox, a kind of 'filter' is automatically performed in the combobox, which shows something that could match what the person wa...
asked by 21.09.2016 / 21:22
3
answers

How do I add or subtract a digit in the TextBox with a button?

I want to add a number to a TextBox by generating a number when the user clicks the "+" button and subtracts when clicking "-". For example: the random number was 2. If I click on the +, it appears 3. If I click on -, the 1 appears. It...
asked by 25.08.2015 / 16:54
1
answer

Accept only one comma in Textbox c # WPF

Hello, I'm using my decimal Textbox like this: <TextBox x:Name="TextBox" KeyDown="TextBox_KeyDown" Style="{StaticResource MeuTextBoxValor}" Height="23" Margin="1" Text="{Binding Peso, NotifyOnValidationError=tru...
asked by 13.12.2018 / 13:45
1
answer

How to fill form from combobox with database information? [duplicate]

I used the code like this: <html lang="pt-pt"> <head> </head> <body> <?php $servername = "localhost"; $username = "isabelso_isabel"; $password = "password"; $dbname = "isabelso_db"; $dbconn = mysqli_connect($se...
asked by 26.06.2017 / 13:02
2
answers

Return original formatting TextBox

I have a method, which checks if a TextBox is filled, if it is normal, if it is blank, it displays a message on the screen, and it paints the background of the TextBox in yellow, Here comes my doubt, how do I return to the default color? Curr...
asked by 28.06.2016 / 05:55
2
answers

TextBox_Changed is accumulating the value of the sum c #

I am using the textBox_Changed event and when I type a value in the field, another textBox should receive this value, but this other textBox called ValorTotalVenda is accumulating this value. private void textBox4_Te...
asked by 11.01.2017 / 14:36
1
answer

TextBox mascara value from 2 to 4 decimal places in WPF C #

I would like my TextBox to have 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 # is the following: <TextBox x:Name="ValorP...
asked by 15.08.2018 / 21:22
1
answer

"Transparent" text in java

I wanted to make a text like this: Thistext"transparent" when clicked it disappears and if you can start writing in dialog ... does anyone know how to do this in Java? Help me out!     
asked by 13.03.2015 / 02:47
1
answer

How to use a Masked textbox for time in C #?

I'm trying to create a masked textbox that gets the time of a video. But I do not know how to format the masked textbox so that it receives the time in HH: MM: SS: MMM . The amount of time I get from the video is a double . 1 sec = 1000. I...
asked by 16.06.2016 / 18:13