Top "Textbox" questions

A textbox is a graphical user interface element which allows for simple input text, usually only a single line of text.

How do I make a textbox that only accepts numbers?

I have a windows forms app with a textbox control that I want to only accept integer values. In the …

c# .net winforms textbox
How can I set focus on an element in an HTML form using JavaScript?

I have a web form with a text box in it. How do I go about setting focus to the …

javascript html textbox focus
How to detect a textbox's content has changed

I want to detect whenever a textbox's content has changed. I can use the keyup method, but that will also …

javascript jquery textbox keypress
How do I get a TextBox to only accept numeric input in WPF?

I'm looking to accept digits and the decimal point, but no sign. I've looked at samples using the NumericUpDown control …

c# wpf xaml textbox numericupdown
Calculate text width with JavaScript

I'd like to use JavaScript to calculate the width of a string. Is this possible without having to use a …

javascript textbox
Limit number of characters allowed in form input text field

How do I limit or restrict the user to only enter a maximum of five characters in the textbox? Below …

html forms input textbox
how do you increase the height of an html textbox

How do you increase the height of an textbox? (along with its font size)

html textbox
Which passwordchar shows a black dot (•) in a winforms textbox?

Short question here: In .Net 4.0 Winforms, how do I use the PasswordChar property of a Textbox to show a common …

c# .net winforms textbox
Set keyboard caret position in html textbox

Does anybody know how to move the keyboard caret in a textbox to a particular position? For example, if a …

javascript textbox input
Multiline for WPF TextBox

I am developing an app for sending some feedback. Basically I'm trying to make a TextBox for comments, but I'm …

wpf textbox multiline