textbox

Set focus on textbox after postback.

I have a search page with 3 TextBoxes that users can filter a search with. I have put the focus on the TextBox that contains text. If more than one contains text just focus on last TextBox. private void SetFocusOnTextBox(ControlCollection ctrlCollection) { foreach (Control ctrl in ctrlCollection) { if (ctrl.GetType() ==...

From AutoComplete textbox to database search and display?

Hello everyone, I have a small problem so I would be grateful if anyone could help me in any way. Thank you ;) I have this little "application", and I want when someone type in a AutoComplete textbox for example "New" it automatically displays "New York" as a option and that (AutoComplete function) works fine. But I want when user type ...

How do stop output buffering in a WPF TextBox?

I don't want text to be buffered from my application to a WPF TextBox. I can't see an obvious property for it. Currently, I'm just using the AppendText method. In C we used something like setbuf(stdout, (char *)NULL) - is it something like that in C# or something simpler? ...

How to save user imputed value in TextBox? (WPF, XAML)

How to save user imputed value in TextBox? (WPF XAML) So in my xaml window I have a TextBox. User sturts my application inputs some values in to it and presses a button or hints Enter. He closes an app. Opens it up again. How to make his inputs be saved in that TextBox in WPF? ...

How to skew a Textfield in Actionscript 3.0 ?

How can I skew a Textfield in order to set a ascending space for each line. Following image should illustrate my intention: link to example ...

Data-binding taking too long to update

In my application I have this code in my view model: hiddenTextContainer.PreHideVerticalOffset = VerticalOffset; hiddenTextContainer.HiddenText = Text.Remove(SelectionStart, SelectionLength); hiddenTextContainer.HasHiddenText = true; hiddenTextContainer.NonHiddenTextStart = SelectionStart; ...

selecting word from textbox

I'm looking for a method to get the value for a selected word from textbox. For example: I have textbox.Text =" How are you"; when I select "are" I should get message with selected word MessegeBox.Show(selectedWord); ...

HTML element to use as a Javascript message display

I have a message display field on my website that I'd like to change the value of via JS. I've been using just a textfield, disabling it, and modifying the value via a JS function (after using a little CSS to make it not look like a text field): <input type="text" id="message" style="background: white; color: black" size="50" disabled>...

Weird typewriter sound as I type into a textbox (wpf) in C#.

I've made a pretty simple WPF windows with a textbox in it. As I type in it it gives me this weird typewriter-sound. Any idea why? And how can I stop it from doing it? ...

Is it possible to use an input within a <label> field?

I have a bunch of optional "write-in" values for a survey I'm working on. These are basically a radio button with a textbox within the answer field - the idea being that you would toggle the button and write something into the box. What I'd like to do is have the radio button toggled whenever a user clicks in the text field - this seem...

cast value of a textbox to a textbox in another form

I'm trying to paste the values from a textbox in form1 to textbox in form2. I did that, but while i upgraded my aplication it stopped to work. I allso need that couse i get an error(incorect data type in conditional statement) when i want to insert a value from a textbox (to a access database) that's not on the form that makes the inser...

Textbox not updating in UI screen

i have a page consisting of devexpress gridview control with 4 columns and 4 asp.net text boxes. on selecting a row in gridview ,it should update the 4 textboxes with the values of the row selected. so i was assigning the value of the rows of the grid to the text box in the custom callback event of the grid and also the value ge...

Silverlight Textbox scrollviewer problem

In silverlight, I got a textbox which I want to be multiline and have mousescrolling available. If I only use textbox then I dont have mousescrolling. If I use a scrollviewer I will have mousescrolling. BUT everytime my writing exceeds the rows that are shown from start the text and caret just dissapears without the scrollviewer doing...

displaying decimal values from database in textbox

Hi there! i just want to ask how to set the textbox so it will display decimal numbers. Couse now if i read a decimal number from my access database like 0,2 it displays only 0 Tnx for the help! ...

TinyMCE: experiences, options

Hi I am considering using TinyMCE to handle the textboxes on sites I develop. I have the production version downloaded. At first I will be using it for the backend of a client's site on a deadline and I need it to work out of the box initally. In the future I also like the customisation options. Basically, does TinyMCE work, is it sta...

WPF TextBox trigger to clear Text

Hi ! I have many TextBox controls and I'm trying to write a style that clears the Text property when the Control is disabled. I don't want to have Event Handlers in code behind. I wrote this: <Style TargetType="{x:Type TextBox}"> <Style.Triggers> <Trigger Property="IsEnabled" Value="False"> ...

WPF Extended TextBox design question

Hi ! I want to derive from System.Windows.Controls.TextBox and provide this functionality. IsEnabledProperty.OverrideMetadata(typeof(MyTextBox), new FrameworkPropertyMetadata( new PropertyChangedCallback(delegate(DependencyObject o, DependencyPropertyChangedEventArgs e) { MyTextBox tb = o as MyTe...

WPF TextBox TextProperty metadata override

How to override the TextProperty Metadata to set the UpdateSourceTrigger.PropertyChanged by default while using the functionality from the base TextBox Class TextBox.OnTextPropertyChanged TextBox.CoerceText methods, when both mentioned are private ? public class MyTextBox : System.Windows.Controls.TextBox { static MyTextB...

Getting TexBox's ID's .... to Calculate

i have : vb code: Private Sub Calculation() Dim txt1 As Decimal txt1 = (CS_Incoms_done.Text / CS_Incoms_target.Text) * 100 CS_Incom_Result.Text = "%" + FormatNumber(txt, 2, TriState.False) Dim txt2 As Decimal txt2 = (CS_GovernmentService_done.Text / CS_GovernmentService_target....

Watermark TextBox in ASP.NET MVC

What is the easiest way to implement watermark textbox control in ASP.NET MVC, are there any such controls on the internet (codeplex maybe). I suppose it is quite simple to write one extending HtmlHelper and using jquery watermark textbox implementation. ...