textbox

text in text box

hi, i am pretty new to the gwt framework and i am using it for building the ui of my web site, i would like to make the text box have a text in it that once the user clicks on it for the first time, the text disappears. and in the rest of the time it behaves like a normal text box any ideas on how to do it? ...

WPF textbox and doubleclick

I am displaying Mac Address in a WPF application. I want that mac address to be selectable to be copy/paste, so I am using ReadOnly TextBox When the user double click I want to select the whole MacAddress The default behavior by the WPF and Windows, is by double click select part of the number between colons so when the mac address is ...

Form Textbox Caching Problem

I have a PHP form, with various input fields and textboxes. If you submit and go back, all of the data that was submitted in the input fields remains, however the textboxes are blank. How can I get the data entered in the textbox to cache like the regular text inputs? ...

How to change text property of asp.net textbox with javascript

I have a textbox that I want to change text property of it with javascript, but I can't do. My sample code below, Can anyone say what is wrong? Thanks... function openAdresYeni(p) { document.getElementById('hdnAdresIndex').innerText = p; } } ...

html helper syntax ?

hello all, please tell me how to give the id to the html textbox my html tag looks like this <%=Html.TextBox("username")%> please help me Thanks Ritz ...

Sending a Text Box control to the Printer?

I cannot seem to figure out how to send a text box control to print in Java. The Program creates word search puzzles, now I would like to print them. I simply want to print the text Box control as it is... But I had to try other methods as follows. My first problem is when I attempt to send it txtEasy.getText() it attempts to prin...

TextBox with automatic culture formatting?

I'm trying to create a TextBox that only allows positive integer input, and that should display the input with culture-specific formatting automatically (in this case en-US, so it should use the ',' sign as a separator for larger numbers). So: An entry of 1000 should show as '1,000' in the TextBox An entry of 1,000 should show as such,...

Get number of character selected in a multiline textbox in asp.net

Hai Guys, I have a multiline textbox and I have set MaxLength="160" ,also i have a label indicating number of characters remaining.... Now i want to get the number of characters selected by the user he may delete it and i have to add to the count representing total number of characters left inside that label..... I want this to be done i...

Adding events like Oncopy,Oncut,Onpate to a dynamically generated text box

Hai Guys, How to add events like oncopy,onpaste to a dynamically generated textbox in a windows form applications... ...

Set cursor at a length of 14 onfocus of a textbox

Hai Guys, I want to set cursor at a position of length 14 on a textbox which will not have a value.. Iknow initially cursor will be at 0 i want it to be at 14 ...

WPF DevExpress TextEdit - " * " for Password input.

Hello, how I can use TextEdit component for passwords input?I want to se some "*" or "#" or another symbol when I type the password. Is there some property, where i can set such a thing? ...

Textbox related Question: Validating Like it was a DatagridView Cell

Hello... I need to validate a textbox as follows: When the user changes focus from that textbox, I want to show the properly formated currency value, but without lost the real user-entered value, Because i need it for later Calculations, and if is the case, for later editing from the user... Can i do that? i don't want to have another...

TextBox.ScrollToEnd doesn't work when the TextBox is in a non-active tab

Hi Our application starts several background processes and put their output into TextBoxes - each in a separate TabItem in a TabControl. I want the TextBoxes to automatically scroll to show the last output line, so in the data handling function that adds the output/error line to the text box, I also call TextBox.ScrollToEnd(): void OnSe...

Add text in textbox that will show only when clicked.

I load files to a TextBox, and I would like some of the information to be hidden and replaced with a LinkLabel (that says something like 'click me to see more'). only when the LinkLabel is clicked will the extra information be shown. the information to be hidden is marked with "/" in the file. Can you think of a way to do this? Is it pos...

Drawing controls with GDI on Compact Framework

I need to draw a textbox in a Compact Framework app, but using directly a Graphics object. I've found the Control.DrawToBitmap method, which I could use for drawing with GDI, but it's not available on Compact Framework. Any hints? ...

WPF Textbox Background Color based on text length

I have a textbox in a listview itemtemplate. I want to change the background color of the textbox to red whenever the length is greater than 75 characters, and I need the background color to update as the user types. What is the best way to achieve this in WPF? ...

How can I make the WPF TextBox scroll text into caret position?

The standard WPF TextBox control does not scroll the overflowing text into caret position as one types text into the control. Is it possible to create this behavior in a singeline WPF TextBox control? If so - How? An example of this behavior is the default way a HTML input type=text acts in most (if not all?) browsers. ...

Usercontrols asp.net textbox/validator controls

Hi all, I want to combine a textbox and several validator controls into 1 usercontrol. Is this possible with the intent to keep some fields dynamic like textbox:cssclass textbox:id textbox:width I'm asking this because i find myself putting a lot of validator controls for every (same textbox type) field in my form and it's getting kin...

Textbox Event Handling

I have a form that has textboxes that display various code values. If I click within one of the textboxes that displays a code, how do i show the description value from the listview subitem into an adjacent textbox? The user clicks on a button to select a list of codes from a Listview that displays both the code and description values fr...

Linking a variable and a text box in Java

Hi, How can I link a variable and a text box in the simplest possible way? I.e. If the user changes the text box contents the variable changes and if the program changes the variable the text in the text box changes. N.B. I'm using the swing and awt libraries. Thanks in advance. ...