textbox

How do I bind an Entity Object to WPF TextBox?

I feel like I'm missing something very obvious here but I can't get basic binding to work with objects from my EDM. Here's my xaml: <TextBox Text="{Binding Path=receipt.STATUS}" Height="23" HorizontalAlignment="Left" Margin="371,276,0,0" VerticalAlignment="Top" Width="120" /> Here's my View code-behind: public MainWindow() { ...

Firefox Bug With Paste + Dynamically Resized Textbox

I am having an issue with FF (surprisingly, IE works) with pasting into a dynamically-resized textbox (using a text shadow). http://pastebin.com/ZzbQdSh7 <!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> <t...

Wpf- How does the textbox in visual studio collapse regions and how can I implement this in my text editor?

I need someone to point me in the right direction. What would I need to do to collapse a region of text in a textbox? I do not need to know how to allow a user to define regions, just how to collapse a region once you have the index and length of that region. I also want to, like visual studio does, leave a visual reminder of collapsed...

jQuery's equivalent to 'enabling' an input

I have a disabled text input that loads as: <input type="text" name="Email<%=i %>" disabled="disabled" /> I'd like the jQuery statement that enables it. Seems like: $("email0").attr("enabled"); should be close but doesn't work. ...

Want to set the value of a textbox based on the value of a 2nd text box

I have a textbox which can be left blank or contain a date. If the textbox has a date I want the 2nd textbox's value to be set to the value of a session variable. I need this to happen before the update sql is performed on postback. This is the code I have. But the textbox is coming back as nothing. Whether it has a value in it or n...

ASP.NET - Fill/update row in gridview when a textbox loose focus

Hello. I have the following gridview that is inside an updatepanel: <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Button ID="ButtonAdd" runat="server" OnClick="ButtonAdd_Click" Text="Novo Artigo" /> <asp:GridView ID="Dados" runat="server" AutoGenerateColumns="False" CssClass="Grid"> ...

WPF how to set a tooltip to textbox (in style file)

Hi I wanted to have nice tooltip for my TextBox, so I started with simple tooltip. <TextBox> <TextBox.ToolTip> <StackPanel> <TextBlock>Nice text</TextBlock> <TextBlock>Nice text</TextBlock> </StackPanel> </TextBox.ToolTip> </TextBox> However I have a dozen textbox...

.NET TextBox - Handling the Enter Key

What is definitively the best way of performing an action based on the user's input of the Enter key (Keys.Enter) in a .NET TextBox, assuming ownership of the key input that leads to suppression of the Enter key to the TextBox itself (e.Handled = true)? Assume for the purposes of this question that the desired behavior is not to depress...

How do I add parameters to an event handler in javascript?

Hi, and thanks for looking. Currently I am implementing code from this example. In my aspx file, I have Label1 and Textbox1 defined. In my aspx.cs file, I am setting the Label1.Text property to a random string in the Page_Load method. In the .js file I have included, I have: var Label1, TextBox1; Sys.Application.add_init(AppInit); f...

AS3 TextChange Event?

Hello everyone, I just want to know if there is any TextChange Event or equivalent to that in AS3? I am currently using Adobe Flash CS3 with my AS3 files and I have to detect whether or not my TextTool's value has changed or not. With my data being integers ranging from -4.440 to 3.560, I obviously cannot use the != operator. If anyo...

convert textbox to multiline with jquery

I have a single line textbox. I want to with jquery convert it to multiline but control how many lines that are added to it. I want to also be able to limit the number of characters on each line. Any ideas how I can do this with jquery? EDIT: Yes what I meant by textbox was <input type="text"> EG. <input type="text" value="" name="t...

Iterating through textbox controls in a panel C#

I have seen many others with similar problems but I cannot find the flaw in my logic here. Any help would be greatly appreciated. I have a Panel which I have added numerous label and textbox controls to, ie: myPanel.Controls.Add(txtBox); These controls are created and added in a method called previous to the iteration method. I...

VBA Textbox loses focus on 'Alt-Gr'

Hi, I am experiencing a funny behaviour of Textboxes on a VBA Userform: On pressing Alt-Gr the box loses focus. This happens after running a bit of VBA initialization code for the form. The text box has neither initialization code nor event listeners. Starting the user form straight out of the IDE everything is fine. I suspect a MS Off...

Javacript hide additional text field in existing script

I am using this code: http://jsfiddle.net/q3nUS/ $('#cf11_field_20').change(function() { $("#li-11-22")[$(this).val() == "full03_accommodation_hotel" ? 'show' : 'hide']("fast"); }).change(); $('#cf11_field_22').change(function() { $("#li-11-23")[$(this).val() == "full03_hotel_other" ? 'show' : 'hide']("fast"); }).change(); It wor...

TextBox - binding property doesn't refresh itself

Hi I have a textbox which Text property is bound like that <TextBox Name="txtBox"> <TextBox.Text> <Binding Path="Data"> </Binding> </TextBox.Text> </TextBox> The filed Data can be changed in various places in my program. However if I change filed Data in ahother control, the t txtBox Tex...

Delay Keypress until TextBox is enabled

My custom Control displays a TextBox when a key is pressed (basically to allow for numeric input). It's easy enough to show the TextBox from inside the KeyDown event on the main control, but how do I pump the keypress into the textbox? ...

input textbox onchange is not firing when data is assigned to input textbox

this is my html page <script> function set() { document.getElementById("txt").value++; } </script> <input id="txt" type="text" onchange="javascript:alert('txt changed');" value="0"> <br/> <input type="button" onclick="set()" value="Set Data"/> when i press the button, the text box value is changing, and onchange even is not firing but...

Working with Arrow Keys in a WPF Textbox (C#)

Is there any way to catch the Up/Down arrow keys in a WPF TextBox (System.Windows.Controls.Textbox) and allow them to alter the text? I've read about overiding the ProcessCmdKey method for a Windows Forms TextBox (System.Windows.Forms.TextBox), and it worked fine, but that TextBox is not nearly as flexible as the WPF one. Is there a simi...

Textview wrap around View

Hi, I'm trying to make my horizontal layouts take advantage of the room available. In an info showing activity I have a 'fact box' followed by a large box of text. I'd like the infobox to float right, similar to the following picture. Is this possible using the android TextView api? ...

C# tabindex - generalize (desktop app)

I have a few textboxes. I'd like to point the user each time to the next textbox, on pressing enter. Textboxes have Tabindex set up correctly. I got something like: private void textBox_Description_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) { e.Handled = true; ...