textbox

WPF- Is it possible to add an OnVerticalOffsetChanged event to a custom textbox?

Is there any way for me to do this? ...

Stop browser from filling textboxes with details

Hi, I've run into a really annoying problem, and I'm hoping it's just a setting I've missed. I've got an ASP.NET application which allows users to enter their username/password in various places (e.g. login, change password, change username etc..). When I logged in, the browser asked if I would like to store the user details. Usually, ...

textbox not getting refreshed

i am doing an ajax call and i refresh a partial view. Inside the partial view i have this: <%=Html.TextBox("instance.Id", Model.Id)%> when i put a breakpoint here over Model.Id it has a number in it but after the ajax refresh is done the textbox just shows up with a 0. When i do a full browser refresh, the correct number shows up in ...

How do I call a Asp.Net textbox in CSS?

I hope this isn't too difficult, obviously you can call HTML tags such as fieldset, label and legends and also textboxes. However how does one call an asp:textbox, i have tried just textbox, asp:textbox, input.textbox but nothing seems to work. This is something that should be really straight forward to do and I can't waste any more time...

SSRS Tablix Header Row Formatting

I've got several reports and they have been built with various formatting. Nothing huge just the header row is different between them. I'd like to pick a standard and just update the reports so they all look the same. This can be done on a textbox by textbox basis - setting the font, font color, font size and background color. It see...

EDIT Control Showing Squares Instead Of Returns

I'm playing a little bit with PocketC by doing a simple text editor. But with this code to read and to display the contents of the file on the EDIT control: int filehandle; int file_len; string file_mode; initComponents() { createctrl("EDIT", "test", 2, 1, 0, 24, 70, 25, TEXTBOX); wndshow(TEXTBOX, SW_SHOW); guigetfocus(); }...

How do I add a Textbox in a menu in Visual Studio 2010 addin?

I would like to add a texbox to the Project,Item and solution menu in Visual Studio 2010. It seems the way I did it in Visual Studio 2008 no longer work. Old way: menuItem = _applicationObject.GetCommandBar("item").Controls.Add(MsoControlType.msoControlEdit, 1, "", 1, false); Is there a way of doing this in Visual Studio 2010? Doing th...

Is it bad practice to handle the showing of the open file dialog, and other dialogs, from within a custom textbox control?

I am making a custom textbox control and am thinking about adding keybindings in the constructor that execute commands to open and save files. I am also thinking about handling the find and replace dialog from within my textbox control. Is there a reason I shouldn't do this? --Edit-- I am planning on only using this control in my curr...

Multiline for WPF TextBox

I am developing a app for sending some feedback. Basically i'm trying to make a TextBox for comments, but i'm used to the WinForms MultiLine=true. I've set MinLines to 3, which is getting there, but preferably i'd like if user is able to type wherever in this block, like press enter and do dot points sort of thing - like: - Item 1 ...

Prevent automatic selection on textbox focus

Hello, When you use a tab key to select a textbox, all text in it is automatically selected. What's the easiest way to prevent this from happening? (Setting the selection to none in Enter or GotFocus events doesn't work) Thanks (-: ...

MVVM- Is there a way that I can get and set a textbox's text without using databinding?

I need to be able to get and set the textbox's text, but I don't want every single change in the textbox's text to update a string in my viewmodel. It seems to me that binding a string to the textbox's text property would be nearly as inefficient as updating a string on a textbox's textchanged event or am I wrong? ...

Wpf- Is there a way to cause an UI element to loose focus without changing the focus to something else?

I would like to add an IsFocused property to a custom textbox that I am working on, is there any way to do this? ...

Cancel Leave Event when closing

I have got a textbox on a form with a method being called from the txPredio_Leave event. My problem is that is the user has focus on the textbox and then close the form by clicking the little X close icon in the top corner or by calling this.ActiveMdiChild.Close(); or by calling private void mnucerrarTodas_Click(object sender, Ev...

how to get the value from a textbox that is next to my text

i have an html page where i have a table of items (one item per row) where each item is a html link that says "Add" and there is a textbox next to each link with a number in it. the text link and the textbox are in the same td inside the row of the table. how do i, using jquery, capture the value from the textbox that is to the right o...

JavaScript + HTML textbox problem!

i'm trying to get the value of 2 textboxes with Javascript. textbox 1, nothing wrong. textbox 2, same code, there happends nothing!!!!!! here is the code var fieldname; fieldname = document.getElementById("div"+field).getAttribute("field"); alert(fieldname); // RETURNS "Birthdate" var textval; textval = documen...

How to LIMIT the text box length?

I am working on eclipse java using swt jface with rcp. How can i limit the characters in my text box. Like if i want only 4 characters in my text box then what should i do? and what if i want alphanumeric combination . again in certain limit? ...

ASP MVC add textboxes with jquery

I am new to jQuery, but I would like to have a button that when clicked will add more textboxes to a page. I have three textboxes that contain data of the same type and if the user has more data of the same type to enter, I would like to pop up three more textboxes. What would be the best way to go about that? ...

C# 2.0 Compact Framework TextBox question

Hello, does anyone know how to load contents of a file into a multilined TextBox in net 2.0 compact framework and, after editing save it back to a file (the same or with changed name)? I'm a newbee in C# programming :( Greetings ...

How to eliminate a prefix of '0' before a number using jquery

I need a jquery script section that checks to see if the first digit of a textbox entered number string is a '0' and eliminate it if so. For example "044055" needs to become "44055" ...

Whats the KeyCode for overwriting a text in TextBox in winforms

I have a custom control which extends from TextBox. In the KeyDown event of the control I have access to the KeyCode property of keyEventArgs If the text in the textbox is selected and some other text is typed on top of it, the keyCodes that I am getting in the KeyDown event are different each time and in the KeyPress event I get the ac...