Questions tagged [textbox]

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

A text box, text field or text entry box is a kind of widget used when building a graphical user interface (GUI). A text box's purpose is to allow the user to input text information to be used by the program. User-interface guidelines recommend a single-line text box when only one line of input is required, and a multi-line text box only if more than one line of input may be required. Non-editable text boxes can serve the purpose of simply displaying text.

A typical text box is a rectangle of any size, possibly with a border that separates the text box from the rest of the interface. Text boxes may contain zero, one, or two scrollbars. Text boxes usually display a text cursor (commonly a blinking vertical line), indicating the current region of text being edited. It is common for the mouse cursor to change its shape when it hovers over a text box.

Wikipedia article: https://en.wikipedia.org/wiki/Text_box

Alternatively text box referred to as a text field, a text box is a section of a page that enables a user to enter text. Text boxes are often used on the Internet for pages that require input from a user. Below are some examples of text boxes you are likely to encounter.

One-line text box

A one-line text box is often used when only a few words, such as a name, are required.

single line

Scrolling text box

A scrolling text box allows a user to enter lots of data and usually scroll up, down, left, or right to view the text in the box.

multi line

In HTML, a textbox can be made with either <input type=text></input> or <textarea></textarea>.

12672 questions
3
votes
1 answer

visual basic text box to list box

I have made 2 form in my project. But I want to make the first form to enter an input and as the second form, it can display the output. The problem is, I have enter all the input using the textbox, but the output cannot be displayed in the second…
noooooooooooooo
  • 45
  • 1
  • 4
  • 10
3
votes
7 answers

How to fix a value in a textbox?

I have a textbox to save the user facebook's url. Facebook: How can i make…
Lucas Matos
  • 1,112
  • 5
  • 25
  • 42
3
votes
1 answer

How does WPF TextBox "knows" that a KeyDown event was handled

I noticed that when a window is handling the KeyDown event raised by a text box in it and set the event Handled flag to true, the text box ignores the pressed key and doesn’t add it to its content. According to my understanding of how things work,…
splintor
  • 9,924
  • 6
  • 74
  • 89
3
votes
2 answers

How to save the content of Textbox into a textfile

I have a textbox which has some content. I also have a button (SAVE) which shud open the FileSaveDialog and allow the content to be saved in a .txt file. XAML:
Owais Wani
  • 119
  • 1
  • 6
  • 14
3
votes
1 answer

WPF TextBox DoubleClick Event Fires when using Scrollbars rapidly

I have a WPF TextBox, defined like this:
Nate
  • 30,286
  • 23
  • 113
  • 184
3
votes
1 answer

VB6 Textbox fontweight manipulation

I have a VB6 application where I want to manipulate certain parts of a string I am outputting inside a textbox. txtPhoneNums.Text = "Home: " + strHomeNo + vbCrLf _ + "Mobile: " + strMobileNo + vbCrLf + "Work: " + strWorkNo +…
GrumP
  • 1,183
  • 6
  • 19
  • 43
3
votes
3 answers

sharepoint webpart property disappear after a day (C#)

I developed a custom webpart with a webpart property with some textboxes and it works partially. If I deploy the project, the written text in the property is away. This is ok. But my MAIN Problem is, that about after one day the text in the…
grekko
  • 53
  • 1
  • 11
3
votes
2 answers

In a wpf TextBox can i make characters in a string that exceed a a certain length turn red?

I'm using a TextBox control and want the characters to turn red after a certain number of characters to show users they have typed too much. I don't want to truncate as the user might have typed that "really important thought" and if I truncated…
Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228
3
votes
1 answer

Correct way to render cursor in custom text area?

I am using SDL and libfreetype and constructing a very basic GUI, I'm implementing a textBox, but I haven't been able to figure out how I'm supposed to generate the standard blinking cursor part. It doesn't seem to be exactly the same as a |…
OmnipotentEntity
  • 16,531
  • 6
  • 62
  • 96
3
votes
1 answer

VBA to verify if text exists in a textbox, then check if date is in the correct format

I have an excel form that I created in combination with VBA. In the form I have a textbox in which the user is to type in a date. I have created this VBA clause to ensure the user types in a date that supports the format xx/xx/xxxx. If Not…
Paolo Bernasconi
  • 2,010
  • 11
  • 35
  • 54
3
votes
3 answers

MVC3 text field no copy/paste or ctrl+C/ctrl+V

I want to achieve something like this but for mvc3, where user can't either copy/paste or use CTRL+C/CTRL+V on the text field. How to disable copy and cut in TextBox? Thanks for your help.
OBL
  • 1,347
  • 10
  • 24
  • 45
3
votes
1 answer

Scrollable years in dijit.form.DateTextBox

The dojox.widget.Calendar lets us scroll over the years easily. Can that be simulated/added to the DateTextBox widget? I prefer the DateTextBox because of the validations and constraints it provides. Also, once opened, the Calendar widget (as in the…
GSai
  • 132
  • 2
  • 9
3
votes
2 answers

How do you pre-set values on the right-hand side of a Shuttle Item in Oracle APEX?

I've looked at numerous forums and tutorials, but it doesn't display the values on the right hand side of the shuttle. However, if I look at the Session values, it seems to set the values properly, it just doesn't show it in the Shuttle Item…
Corrine
  • 193
  • 2
  • 5
  • 11
3
votes
1 answer

Asp textbox xhtml and extra newline

There seems to be a problem with the ASP textbox control when set to multiline and serving the page as xhtml. The project I am working on uses content negotiation to serve asp pages as application/xhtml+xml to browsers which support it. The…
3
votes
2 answers

ATM style decimal places

I'm working on getting an old piece of code working, from 2003. I'm trying to replicate an ATM style decimal textbox. This code claims to have worked for someone, but I am having trouble implementing it. Maybe someone has a better way of achieving…
puppyman
  • 31
  • 2
1 2 3
99
100