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 to automatically select all text on focus in WPF TextBox?

If I call SelectAll from a GotFocus event handler, it doesn't work with the mouse - the selection disappears as …

.net wpf silverlight textbox
Set focus on textbox in WPF

How to set the focus on an TextBox element in WPF I have this code: txtCompanyID.Focusable = true; txtCompanyID.Focus(); ...…

c# .net wpf textbox focus
How do I set a textbox's text to bold at run time?

I'm using Windows forms and I have a textbox which I would occassionally like to make the text bold if …

c# winforms textbox fonts
Make TextBox uneditable

I want to make some TextBoxes on my form uneditable, but I want the text to be clear (black not …

c# .net winforms textbox
asp:TextBox ReadOnly=true or Enabled=false?

What's the difference between the Enabled and the ReadOnly-properties of an asp:TextBox control?

asp.net textbox readonly disabled-control
How to check if a text field is empty or not in swift

I am working on the code below to check the textField1 and textField2 text fields whether there is any input …

swift textbox
Multiline TextBox multiple newline

I set a value for a Multiline Textbox like this. textBox1.Text = "Line1\r\n\r\nLine2"; But, only one …

asp.net html textbox multiline
Specifying maxlength for multiline textbox

I'm trying to use asp: <asp:TextBox ID="txtInput" runat="server" TextMode="MultiLine"></asp:TextBox> I …

asp.net textbox multiline maxlength
Auto highlight text in a textbox control

How do you auto highlight text in a textbox control when the control gains focus.

c# textbox
Call Javascript onchange event by programmatically changing textbox value

the problem I'm facing is this: I have a textbox for a date range along side a calendar control. When …

javascript textbox onchange