textbox

How can I scroll to a specified line in a WinForms TextBox using C#?

Hello!! How can I scroll to a specified line in a WinForms TextBox using C#? Thanks ...

WinForms: two way TextBox problem

I have a TextBox, which I use for both data input and display. A user can select items from a list and for each item there is a corresponding text which is displayed in the TextBox when the item is selected. The user can edit this textbox, thus changing the list item's correponding text. My problem is this: I use the TextChanged event ...

F# and winform Controls Question

I am very new to F#, and I thought I would develop a simple winform calculator to strengthen my skills with F# and .NET. I ran into two problems which probably have very simple answers, however, I could not find any assistance from my resources. First, I want to be able to change my textbox type to integer, so that when I press my "add...

Using jquery, how can I handle tags the same way that Live Mail handles email addresses?

I have a need to have a tag-like system that operates very similarly to how Live Mail does email addresses. For those who don't know, Live Mail provides a textbox in which you can enter email addresses. As you finish typing in an email address, Live Mail changes the address from being plain text into a div that has a border and has the ...

textbox focus jumps to above dropdown list when clicked into

Ive never seen this. I click into my textbox to type in a value and as soon as i release the mouse button focus jumps to the above dropdown list. No javascript on these items. If i hold the mouse button down i can type in a value to the textbox. Any idea? ...

Copy data from one sheet to other, on selection of data from the dropdown list.

Hi, Please help me in writing the Macro.I have no idea writing VB Macro and its SyntaX. The scenario is: An excel document has two sheets.The first sheet contains the marks,grades and project details of students. The second sheet contains the dropdown lists of Project version number, different Company names, and post. Project version...

[WPF] Conditional prevention of the textbox change

I have a TextBox, and a TextBlock within the Border. The TextBlock's Text property is bound to TextBox's value. When I type into the TextBox, the Border changes its width according to the TextBlock's new size. There is an event handler for TextBox.TextChanged in which I test whether the size of the border exceeds a certain number. If it...

Trying to get a simple example of asp.net ajax dropdownlist autocomplete extender to work!

Hi, I want to test the dropdownlist autocomplete ajax extension to work. I am testing this in Visual Web Developer Express 2008. 1) I dropped a textbox on the default.aspx form 2) Dropped a scriptcontrol from the Ajax Toolbox 3) Extended the Autocomplete extension to the textbox BTW, at this point, if I display the properties for the ...

Get user input from textbox on JSP

I need to get the value that a user has entered in a textbox on a JSP. I used JavaScript to obtain the value, but then I need to access that same variable outside the JavaScript later on in the page. Here's what I have: <script type="text/javascript"> var sp; function setPolicy(){ sp = document.getElementById('policy').value; if...

Text is not visible in Textbox when focus is set

When I load my form the focus is set on first control which is textbox. the data is not fully visisble in the textbox. this problem happens to textbox only and when the focus is set on first time.if someboy know abt the solution then pls let me know. ...

Javascript Regex Only Textbox

I was able to find the solution for this in c# / .net but not for regular web html. If there's already an answer let me know and i'll close question. How to create a text box that only will allow certain characters (ex. alphanumeric) based on a given regex (ex. [a-zA-Z0-9])? So if a user tries to enter anything else, paste included, it ...

Multiline texbox validation

I want to validate maxlegnth of 5 characters in each row of the multiline textbox Help me ...

windows forms: textbox with history

hello, does anyone know about a windows forms control that acts like the address bar of a browser? it is just like a textbox, but to the right there is a dropdown menu that shows the history of previously entered text. thanks a lot! ...

C# /windows forms: linking trackbar and textfield with a factor

hello, linking a trackbar and a textfield is very easy in windows forms. it is like this: textBox.DataBindings.Add("Text", trackBar, "Value"); the problem is, that trackbars only allow for integer values but i want to have floating point values. so i usually just divide the value by 100, since on the trackbar the value is not directly ...

Writing to a textBox using two threads

Hello, I have some unsolved issue with threads. It's my first time doing it. I know how to use one thread to write in a textBox, but I have no idea how to use two of them to do the job. Anyone have a clue what do I have to do to be able to use two threads to write to the same textBox, but not in the same time. Thank you. ...

html link to change the value of a textbox

Hi, I am trying to create text in html, that once clicked, the the value of a textbox residing near it, changes its value to be equal to that of the text clicked. Is there anyway I can do that? In other words I want the functionality of a button (the onClick event) for a link/text. Thank you For example: What's wrong with this? <td...

Paste from excel to textbox

Hi, I want to copy some data from an excel file to a textbox in a win app. The copy paste works ok if the cells are continuos, but if I select (with CTRL) the first and the third cell, when I paste it to the textbox, it will paste also the 2nd cell. What is the best way to get just the cells i'm interested in? Thank you ...

Which event should be used to tidy the display of a TextBox?

When the user leaves a textbox control I want to trim any spaces and immediately update the display with the tidied string. Should this be done in the Leave, Validating or Validated event? Thanks Clarence ...

Anyone have issues with using a RadTextBox in a MultiView?

I am want to use a Telerik RadTextBox inside a MultiView in ASP.NET 2.0. Just dragging a RadTextBox into a view and running the page generates a run-time error of the good old favorite "Object reference nto set to an instance of an object". It seems to be breaking on the Telerik.WebControls.RadInputControl.SaveViewState() call. Has an...

Cursor Focus on Textbox in WPF/C#

I am currently in the process of creating a Onscreen keyboard. I am handling the button click using routedcommands. The issue is that when i click on the button in keyboard panel the focus shifts to the button rather than on the Textbox. The requirement states that a cursor should always appear in the text box to indicate the position wh...