textbox

middle-button scrolly thing in textbox

hi all, i have a multiline textbox in my app and when i middle-click to scroll up or down, it doesn't work. It works in Notepad, but not in my textbox. Does anybody know why? or, if it is possible to programatically begin scrolling in the desired direction when the middle-button's clicked? ...

How to fetch File Field's file name into textbox using Rails and Prototype

Hi friend, I need to know how to fetch file field's file name into textbox using Rails and Prototype 1) I need to upload any file using <%=file_field "text"%> 2) Then I need to fetch those file name into new textbox below please help to solve this problem. Thanks ...

Default button asp.net / javascript problem

Every attempt I had at making a button default failed, until someone on here posted some javascript that checks the textbox for the enter key and hits the button. I tried putting my controls into a form and setting the default button, and some other stuff, but nothign worked except that javascript. The problem I have now is that I am u...

Using JQuery, how do you detect if the value of a text input has changed while the field still has focus?

I noticed prior to posting this question that there have been similar questions posted on this topic before, however the user isn't interacting with the text field by using the keyboard in this instance, in such case binding the text field to the "Paste" action or any of the other nifty suggestions wouldn't work in my case. Our users ar...

Android: Is it possible to have different handlers for drawableLeft and the text inside a TextView?

I was wondering if it is possible to have different behavior depending on a click on the icon and the text inside a TextView... Any suggestions? ...

C# , textbox, .NET

Hello, I have a problem, I must to create a way to search the contents of a selected text file wich is displayed in multiple textbox (lblResult.Text). Use a simple search algorithm: Search for the entire search term entered by the user. For example, if the user enters "hello", search only for "hello". If the user enters "hello world", ...

Stopping TextBox flicker during update

My WinForms application has a TextBox that I'm using as a log file. I'm appending text without the form flickering using TextBox.AppendText(string);, however when I try to purge old text (as the control's .Text property reaches the .MaxLength limit), I get awful flicker. The code I'm using is as follows: public static void AddTextToCo...

how to show a textbox when a particular option from a dynamic dropdown is selected in javascript

i have this code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script language="javascript" type="text/javascript"> function dropdown...

Temperature TextBox In C#

I need some code to convert standard C# TextBox to temperature TextBox which means adding "°C" to end of the text in the textbox with another color than the default color. ...

working a textbox in a form from another class C#

so i have public class Form1 : Form {} and class Updater {} and i have textBox1 on Form1, along with many other controls... so here is my dilemma: i have a while(true) {} loop in Updater, and i couldn't stick it in the Form1 class, because it was preventing the form from loading. and i need to update a multi-lined textbox (textB...

ASP.Net TextBox.AutoCompleteType property - useful? customizable?

The ASP.Net TextBox control has an AutoCompleteType property that takes an AutoCompleteType enumeration value. First, is this property commonly used in actual development? Or is "browser autocomplete" turned off and Ajax autocomplete used instead? Second, are you constrained to only the values in the AutoCompleteType enum? Can you ext...

Dynamic Windows Forms TextBox

I am creating a TextBox dynamically and adding that in a TabPage which is itself also dynamically created. But the problem is, the TextBox is not showing text formatting correcly. For example: \t and \n are not reflected at all. I have already set property Multiline to True. But again no improvement. What to check for? ...

WPF TextBox - programatically select text while preserving "selection direction"

When editing text the user is able to use the keybord shift button and direction keys to modify the selection - one position stays anchored while the other moves. By pressing left it is possible to get the movable part on the left of the anchored part. I'm trying to dinamicaly modify the users selection in WPF's TextBox (for the purpose...

wpf / silverlight textbox filter design

I have a list that the user can filter in several ways. two of which lend themselves to combo boxes and two that need to accept user input. For example, one textbox allows the user to type in any part of a list item's description, and the dialog will only present items whose description contains the text entered. It is a dialog 'picker'...

How do I make an asterisk line up with surrounding text in WPF?

I'm trying to make an asterisk line up vertically with surrounding text/graphics rather than above it. I thought applying a negative BaselineOffset would be the solution, but it seems to have no effect. Here's the documentation for the TextBlock.BaselineOffset property: Property Value Type: System.Double The amount by which ...

Simple textbox validation - display message is nothing is entered

Hi all, I'm pretty new to this so here goes... I'm using Visual Studio 05 (C#) and in my program I have a textbox and a submit button. The user enters an email address and results are then displayed from the database (this works) using an ASP gridview control. What I am after is a simple piece of validation that if nothing has been ent...

Keep text selection when focus changes

I have a normal textbox, and a lightbox with a text input. I want to keep the user's selection in the textbox, even when the user focuses on the lightbox's text input. 1. Select text in normal textbox 2. Toggle lightbox 3. Focus on lightbox input At step 3., the user's text selection is discarded. How can this be prevented? See Googl...

Display caret position in textfield in Firefox or resize textfield as needed.

There is an annoying bug in Firefox which allows me to set the caret position in a textfield, but it does not automatically scroll that caret into view. My particular issue arises when using the jQuery Masked Input Plugin (http://digitalbush.com/projects/masked-input-plugin/) If the width of the textfield is less than the width of the ...

WPF TextBox.SelectAll () doesn't work

Hi! I have used the following template in my project: <DataTemplate x:Key="textBoxDataTemplate"> <TextBox Name="textBox" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}" Tag="{Binding}" PreviewKeyDown="cellValueTextBoxKeyDown"> <TextBox....

Generic click-to-rename script in JavaScript (text to input/textbox)

Writing a widget to be able to rename files by clicking on the text name and entering the new name. I didn't find any ready-to-use solutions, maybe you can point me to one? Here is where I ended up and it doesn't work: for some reason, only the last input box is changing, and the first and second aren't referenced: <span id="text_name...