Все вопросы: [textbox]

399 вопросов

похожие теги: maked-textboxnumeric-textbox
4
голосов
1ответов
11460 просмотров

Keep text selection when focus changes

I have a normal textbox, and a lightbox with a text input. I want to keep the user's selection in the textbox, even when the user focuses on the lightbox's text input. Select text in normal textbox Toggle lightbox Focus on lightbox input At step 3., the user's text selection is discarded. Ho...

0
голосов
3ответов
1014 просмотров

Simple textbox validation - display message is nothing is entered

I'm pretty new to this so here goes... I'm using Visual Studio 05 (C#) and in my program I have a textbox and a submit button. The user enters an email address and results are then displayed from the database (this works) using an ASP gridview control. What I am after is a simple piece of valid...

1
голосов
3ответов
2743 просмотров

How do I make an asterisk line up with surrounding text in WPF?

I'm trying to make an asterisk line up vertically with surrounding text/graphics rather than above it. I thought applying a negative BaselineOffset would be the solution, but it seems to have no effect. Here's the documentation for the TextBlock.BaselineOffset property: Property Value Typ...

0
голосов
1ответов
816 просмотров

wpf / silverlight textbox filter design

I have a list that the user can filter in several ways. two of which lend themselves to combo boxes and two that need to accept user input. For example, one textbox allows the user to type in any part of a list item's description, and the dialog will only present items whose description contains ...

5
голосов
4ответов
1848 просмотров

WPF TextBox - programatically select text while preserving "selection direction"

When editing text the user is able to use the keybord shift button and direction keys to modify the selection - one position stays anchored while the other moves. By pressing left it is possible to get the movable part on the left of the anchored part. I'm trying to dinamicaly modify the users s...

1
голосов
1ответов
970 просмотров

Dynamic Windows Forms TextBox

I am creating a TextBox dynamically and adding that in a TabPage which is itself also dynamically created. But the problem is, the TextBox is not showing text formatting correcly. For example: \t and \n are not reflected at all. I have already set property Multiline to True. But again no impro...

3
голосов
2ответов
11720 просмотров

ASP.Net TextBox.AutoCompleteType property - useful? customizable?

The ASP.Net TextBox control has an AutoCompleteType property that takes an AutoCompleteType enumeration value. First, is this property commonly used in actual development? Or is "browser autocomplete" turned off and Ajax autocomplete used instead? Second, are you constrained to only the values ...

0
голосов
3ответов
6166 просмотров

Working a textbox in a form from another class in C#

So I have public class Form1 : Form {} and class Updater {} And I have textBox1 on Form1, along with many other controls... So here is my dilemma: I have a while(true) {} loop in Updater, and I couldn't stick it in the Form1 class, because it was preventing the form from loading. And I n...

1
голосов
4ответов
3257 просмотров

Temperature TextBox In C#

I need some code to convert standard C# TextBox to temperature TextBox which means adding "°C" to end of the text in the textbox with another color than the default color.

0
голосов
1ответов
2828 просмотров

How to display an HTML input based on a dropdown selection in javascript

I have a webpage where the sub-category dropdown options are dynamic, which means that it's contents depend on the selected category. How can I display a textbox when Colleges is selected in the sub-category dropdown, with javascript? Below is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XH...

14
голосов
6ответов
20742 просмотров

Stopping TextBox flicker during update

My WinForms application has a TextBox that I'm using as a log file. I'm appending text without the form flickering using TextBox.AppendText(string);, however when I try to purge old text (as the control's .Text property reaches the .MaxLength limit), I get awful flicker. The code I'm using is a...

1
голосов
2ответов
461 просмотров

C# , textbox, .NET

I have a problem, I must to create a way to search the contents of a selected text file wich is displayed in multiple textbox (lblResult.Text). Use a simple search algorithm: Search for the entire search term entered by the user. For example, if the user enters "hello", search only for "hello". I...

8
голосов
2ответов
4238 просмотров

Using JQuery, how do you detect if the value of a text input has changed while the field still has focus?

I noticed prior to posting this question that there have been similar questions posted on this topic before, however the user isn't interacting with the text field by using the keyboard in this instance, in such case binding the text field to the "Paste" action or any of the other nifty suggestio...

0
голосов
2ответов
998 просмотров

Default button asp.net / javascript problem

Every attempt I had at making a button default failed, until someone on here posted some javascript that checks the textbox for the enter key and hits the button. I tried putting my controls into a form and setting the default button, and some other stuff, but nothign worked except that javascri...

0
голосов
1ответов
1174 просмотров

How to fetch File Field's file name into textbox using Rails and Prototype

I need to know how to fetch file field's file name into textbox using Rails and Prototype I need to upload any file using <%=file_field "text"%> Then I need to fetch those file name into new textbox below

3
голосов
2ответов
734 просмотров

middle-button scrolly thing in textbox

i have a multiline textbox in my app and when i middle-click to scroll up or down, it doesn't work. It works in Notepad, but not in my textbox. Does anybody know why? or, if it is possible to programatically begin scrolling in the desired direction when the middle-button's clicked?

4
голосов
1ответов
3370 просмотров

AutoComplete TextBox with Features of Like Clause example %hello% C# Windows

I am using TextBoxes's AutoComplete Suggest mode property to make it AutoComplete, What I want to achieve with it is a user can type any word which can pe part of the whole string and based on that It should show me the lookup. With TextBox AutoSuggest Source set to Custom Source and AutoSuggest...

0
голосов
2ответов
572 просмотров

Making Textbox type into a textbox?

I'm a noob to VB.NET and I was wondering how to make something you type into a textbox on the application type that text into a website textbox and submit whats in the textbox by pressing a button? I am using visual studio 2008.

1
голосов
2ответов
8862 просмотров

prevent typing non ascii characters in a textbox

Since I think people have encounter it lots of time before I did and there may be some standart solution.. Can anybody give any hint direction how to prevent a user from typing non ascii characters in a textbox.

1
голосов
4ответов
4803 просмотров

C# Binding multiple textboxes to database

I'm trying to Bind 3 textboxes to a Class that retrieves any previously stored records for each of the 3 textboxes. I don't know how to retrieve 3 different values from a class in a Object Orientated perspective. I know how to return single strings, bool, etc vars but not more than 1 at a time. ...

0
голосов
3ответов
3666 просмотров

Javascript: Adjust date in textbox using keypress event

I have a standard <input> textbox where users enter a date. I'd like to add some functionality where users can enter + or - to add/subtract a day from the value. I added an onkeypress event that calls this function: function adjustDate( element ) { var e = event || window.event; v...

0
голосов
1ответов
614 просмотров

VB.NET - using textfile as source for menus and textboxes

this is probably a bit tense and I'm not sure if this is possible at all. But basically, I'm trying to create a small application which contains alot of PowerShell-code which I want to run in an easy matter. I've managed to create everything myself and it does work. But all of the PowerShell c...

5
голосов
2ответов
2905 просмотров

WPF Validating unbound textbox

is it possible to use validation without the Binding part? The thing is my textbox is not bound to any object, but I still want to validate it's content. The only way I've found so far is this: <TextBox Grid.Row="0" Grid.Column="1" MaxLength="50" x:Name="textBoxTubeName" Margin="5,5,0,5"&...

1
голосов
3ответов
889 просмотров

My Text box is not rendering the text inside it

I have a text box where there is a initial text has been set in the text box of asp.net website. But after rendering the web page the text box is not showing initial text in the text box. Code for text box <td class="textFieldColumn" style="height:16px!important;"> <asp:TextBox ID="...

0
голосов
1ответов
370 просмотров

Initial text is not populating in textbox

I have put an initial text in the text box of a asp.net web page. In the text property box. I want to load the text in the load time of the webpage. While i debug and run text box is not populating with that text. Please help me. <td class="textFieldColumn" style="height:16px!important;"&...

1
голосов
1ответов
2112 просмотров

Asp.Net - UpdatePanel - Add many textbox

My problem is each time I hit the "Test" button, only one textbox is created. If I click two times, I would like two textbox to appear. I try this solution, and it's seems to work fine except for only one thing. Each text the textbox are (re)created so I loose the value the user have entered... ...

422
голосов
15ответов
497619 просмотров

How to detect a textbox's content has changed

I want to detect whenever a textbox's content has changed. I can use the keyup method, but that will also detect keystrokes which do not generate letters, like the arrow keys. I thought of two methods of doing this using the keyup event: Check explictly if the ascii code of the pressed key is a...

0
голосов
4ответов
158 просмотров

Can i use text box names as values in a list?

im creating a list to update a MySql db with values form text boxes, how can i make somthing like this work? if i use the verdierX[0] = (int)decimal.Parse(box1.Text); it works just fine but when i try to use it in a loop like this is blowes up. Anyone got a suggestion on how to sol...

2
голосов
2ответов
5145 просмотров

asp:textbox array

how does one do something like this with asp.net <asp:textbox> and c #? (Thus creating an array of text boxes) HTML: <input name="Search[]" value="google" /> <input name="Search[]" value="yahoo" /> <input name="Search[]" value="alltheweb" /> PHP: $array = $_GET['Searc...

3
голосов
2ответов
6020 просмотров

Why can't I make a binding inside asp:Textbox's Text property?

I have the following DataList: <asp:DataList ID="values" Visible="false" runat="server" DataKeyField="Id"> <ItemTemplate> <div id="row" style="height: 25px; vertical-align: top"> <div id="left" style="visibility: hidden; width: 25px"> <%# DataBi...