textbox

WPF Menu Items Styles

Hi, I have an application resource of the following <Style TargetType="{x:Type TextBlock}"> <Setter Property="Background" Value="{DynamicResource windowTextBackColor}"/> <Setter Property="Foreground" Value="{DynamicResource windowsTextForeColor}"/> </Style> So all the text blocks in my application should assume those colours....

Jquery TextBox Insert Text

Hi All; my textbox value = "1000000" How To make texbox index 2 add "."; output "1.000000"; ...

Programmically scroll a textbox's scroll bar from a Vscrollbar or custom one

I made a custom scrollbar that sits beside a normal textbox. I would like to scroll the text box like you would any other one with my control. How can this be done? Thanks. ...

Whats the best way/event to use when testing if the textbox text has finished a change of text

using winforms, c#, vs 2008 So i have textbox1, textbox2 and textbox3 on a winforms. Textbox3.text = textbox1.text + textbox2.text. I need textbox3 to be updated whenever the contents of textbox1 and textbox2 have been changed either manually or programmatic. The problem is if i use textbox textchanged event it keeps firing as one ty...

trying to pass file name from aspx page to console.exe

i want to pass the value of a lable or textbox in an aspx page to a console.exe application such that the if the value is sample.doc it changes to that. i am calling from the aspx page with string f = TextBox1.Text; System.Diagnostics.Process.Start("C:/DocUpload/ConsoleApplication1.exe", f); i have tried converting to string ...

Autocomplete a textbox in c#

I'm trying to autocomplete a textbox. I'm retrieving values from Access Database. Just one field from a data table. If anyone can help me. Thanks in advance ...

WPF - play default windows sound when TextBox cannot recieve any more input

Hi, I'd like the default windows system sound to play when a user attempts to enter text into a WPF TextBox which has already reached it's MaxLength value. How is this possible? ...

Disable a textbox using CSS

How to disable a textbox in CSS? Currently we are having a textbox in our view which can be enabled/disabled depending on a property in the model. We are having asp.net MVC view; depending on the value of the Model property we need to either render a textbox or readonly textbox. we were thinking of doing this by applying CSS to the view ...

ASP.NET Password textbox, has text as characters entered

When I look at gmail on my mobile web browser the password textbox hashes the characters as I type so I can see the actual input as I type before is hashed with an asterisk. So as I enter it becomes, P --> *a --> **s etc.. How is this done? I presume its javascript? If somone can point me in the right direction that would be great. ...

Select the Initial Text in a Silverlight TextBox

I am trying to figure out the best way to select all the text in a TextBox the first time the control is loaded. I am using the MVVM pattern, so I am using two-way binding for the Text property of the TextBox to a string on my ViewModel. I am using this TextBox to "rename" something that already has a name, so I would like to select the ...

MS Access 2003 - text box calculation on a form

Lets say I have two text boxes on a form. the first returns a count value from a SQL statement, or a domain aggregate expression, etc. the second does the same with additional parameters. Now i want to have another text box (#3) that divides one by the other for a very simple percentage. like this for a controlsource: =[textbox2]/[text...

Find the x, y point of a string within a text box

Is there a way to return a point for a string within a text box? I found a COM function GetTextExtentPoint that will return the length of a string, but I want to know the point where the string starts. ...

Accessing Textboxes in Repeater Control

All the ways I can think to do this seem very hackish. What is the right way to do this, or at least most common? I am retrieving a set of images from a LINQ-to-SQL query and databinding it and some other data to a repeater. I need to add a textbox to each item in the repeater that will let the user change the title of each image, ver...

How do I implement a TextBox that displays "Type here"?

Displaying "Type here to ..." until the user enters text into a TextBox is a well-known usability feature nowadays. How would one implement this feature in C#? My idea is to override OnTextChanged, but the logic to handle the changes of Text from and to "Type here" is a bit tricky... Displaying "Type here" on initialization and removin...

How to allow only english chars in textbox?

I want to allow only English characters to be typed in my asp:TextBox (in asp:Login conttrol). How can I do that? ...

dynamically setting the size of a textbox in a RDLC report

Can a textbox's width in a local RDLC report be set dynamically using C#? I would like to auto size the horizontal width of the text box based on the data it contains. ...

autocomplete on dynamic textbox using jquey+autocomplete plugin

Hi, I am using a form which has dynamic textboxes I want autocomplete functionality to be implemented on them and I am using Autocomplete Plugin and I want to bind them using live(). Can anyone help me out on how to implement it. Thanks in advance. ...

displaying the values in textbox based on AJAX fetched entries

hello, I've a table in which addition rows can be generatred as per the user need by clicking a javascript function. Each row has a drop down list, and based on the values of this an AJAX script fetchs some values which has to be displayed in corresponding textfields of the same row.. here is the code for HTML.. <td><div align="cente...

Detecting Enter in TextBox ASP.NET no JavaScript Please.

Basically I have a Search Text Box with a LinkButton Control on which the click event is fired. now what i want is when the user type keywords and press enter the Click event got fired. So No Javascript Only ASP.NET With VB.NET v2.0 Sincerely Rajeev [email protected] ...

How can I create an HTML text field that has scrolling background images before it is clicked?

I'm looking to add a textbox on my website that captures a single email address. Behind it, I would like scrolling (or sliding) images to be a "hint" for what the field should be. Example: http://steamboat.com/ - the "Newsletter sign up" toward the top of the page. I can find plenty of jQuery plugins that provide a plain text "hint". ...