textbox

How does StackOverflow's 'tags' textbox autocomplete work?

I know they're using a jQuery plugin, but I can't seem to find which one they used. In particular, what I'm looking for is autocomplete with exactly the same functionality as SO's autocomplete, where it will perform an AJAX command with each new word typed in and allow you to select one from a dropdown. ...

textbox autocomplete

how do i make an autocomplete textbox in asp? but i need to get the autocomplete data by querying the database. I dont really know how to explain this, sory if theres not enough detail. i cant use ajax, because i think i will have compability issues with my old app. so im thinking of doing this using java script. or is there a way to d...

win32 select all on edit ctrl (textbox)

I am creating my textbox with these options. I can copy/cut/paste/undo, but when i hit select A it doesnt select all. I can right click and click select all but ctrl a doesnt do anything, why? wnd = CreateWindow("EDIT", 0, WS_CHILD | WS_VISIBLE | ES_MULTILINE | WS_HSCROLL | WS_VSCROLL | ES_AUTOHSCROLL | ES_AUTOVSCROLL, x, y, w, ...

Textbox anchored to a form on all 4 sides not displayed properly

I'm running into a problem trying to anchor a textbox to a form on all 4 sides. I added a textbox to a form and set the Multiline property to True and the Anchor property to Left, Right, Up, and Down so that the textbox will expand and shrink with the form at run time. I also have a few other controls above and below the textbox. Th...

Links in c# textbox

I have a custom Jabber IM client and I'm having a problem with links. When something like http://something.com is entered I want it to show up as a link in the message window. The message window is a standard c# textbox. Is there a way to mark it as a link so that it can be clicked and open the webpage? Thanks ...

html links in c# textbox

How can I put a link in a c# textbox? I have tried to put html tags in the box but instead of showing a link it shows the entire html tag. Can this be done with a textbox? Thanks ...

Cancelling a WPF TextBox Changed Event

I'm in the process of learning WPF coming from WinForms development. I have a TextChanged event assigned to one of my TextBox's in my WPF application. If the user enters invalid data, I want to be able to revert to the previous text value. In the old forms day, I would replace NewValue with OldValue, but it seems WPF doesn't work the ...

Textbox with a popup in Silverlight

Hi Guys I'd like to build an own control, but therefore I need to know if its possible to combine a Textbox event with a Popup more or less like the Datepicker Control. Or is there a better way to do this than with a Popup? Greets Patrick ...

Individual Character Padding in XAML

Is there a way in XAML to add padding around individual characters? Preferably before and after the character. I have a textbox that I would like the input to be spaced out a bit more (so it aligns with a background image). It would be ideal to be able to do something like: Any ideas how one can accomplish this? It looks like one c...

Reading from a text field in another application's window

Is there a way for a Windows application to access another applications data, more specifically a text input field in GUI, and grab the text there for processing in our own application? If it is possible, is there a way to "shield" your application to prevent it? EDIT: The three first answers seem to be about getting the another applic...

Actual pixel size of columns attribute for asp.net textbox

What is the exact pixel size of one column when I used the columns attribute to determine a width of an ASP.NET textbox control? <asp:TextBox id="MyTextBox" runat="server" columns="10" /> ...

Looking for a .NET "text" editor control.

My boss is looking for a .NET text control to build a custom editor on. Here’s what we need it to do: Supports embedded tables, with easily editing (like Word tables). Supports different text styles (font, size, color, background, etc). Ability to programmatically set styles, both on first load, and as file is edited. Supports key/mous...

Allow users to insert a TAB into a TextBox but not newlines

I want to have a TextBox which does accept the TAB key (and places a TAB, ASCII 0x09, \t accordingly into the textbox) instead of jumping to the next control. The TextBox has a property AcceptsTab, which I have set to true but this does not give the desired result. It turns out the AcceptsTab property only works then Multiline is set to ...

[F#] Trying to figure out how to set off an event when the enter key is pressed in a TextBox

The code I'm playing with is: open System open System.Windows.Forms open System.Drawing let tehform = new Form(Text = "STOP!", Width = 200, Height = 200) let awe = new TextBox(Left = 1, Top = 30, Width = 100) let stuff _ _ = MessageBox.Show(awe.Text) |> ignore let handler = new EventHandler(stuff) let yeah = new Button(Text = "", Left ...

How to set selected index of dropdown to 0 when text of textbox is changed?

Hi, I am using a dropdown to populate a textbox. But if preferred value is not present in dropdown then user directaly enter value in that textbox. If user selects value from dropdown first and then he don't want that value and he types another text in that textbox then at this time the dropdown should be set to index 0 as user is typi...

Best approach to Windows Forms rolling log output in TextBox

In a Forms application I'm displaying log output from a long running command-line application that generated a lot of output. I start the program in the background, and capture its output and currently display it in a TextBox using AppendText. I prefer to only display for example the last 1000 lines. Removing lines from a TextBox is expe...

How to add Autocomplete to a Masked Text Box?

In .Net, there is the MaskedTextBox and there is the TextBox which has an autocomplete member. Autocomplete doesn't seem to be available for MaskedTextBox. How do you get MaskedTextBox working with autocomplete? I am attempting to do this in Visual Basic. ...

WPF changing button background color when the window is disabled

I have a button with a transparent background on a wpf window. Problem is, when I open up another window with a .showdialog the form becomes disabled as does the button, causing the button to go white (and stick out like a sore thumb); the same happens to the listview and textbox controls. Labels and group boxes aren't impacted in this...

How can you change the highlighted text color for a WPF TextBox?

The WPF TextBox natively makes use of the System Highlight color for painting the background of selected text. I would like to override this and make it consistent since it varies by OS/user theme. For ListBoxItems, there is a neat trick (see below) where you can override the resource key for the HighlightBrushKey to customize the Syst...

How to make text in a WinForms TextBox unselectable without disabling it?

Hi, Is it possible to make the text in a TextBox unselectable without disabling the TextBox? It's a RichTextBox and I need it's formatting and selection features. I can't disable it because I want to handle MouseMove and MouseDown events. So far I've thought about disabling the Text box and putting a panel on top of it which will deleg...