I have a series of text boxes on my form, and my client wants me to filter out characters that aren't allowed, for example in the name field you cannot have symbols or numbers.
Now, he wants it so when you try and put in a special character it simply will not get entered into the text box. I know the logistics to this, but I'm not sure ...
How do you auto highlight text in a textbox control when the control gains focus.
...
Hello! I'm getting my text from a textbox from code-behind using control.Text()
but I'm not getting the proper characters, I want "ÅÄÖ". Must be some problem with the text encoding but I've already checked my encoding settings in VS. Someone??
...
Question:
Is there a good way in Silverlight to intercept undesirable characters from being entered into a textbox?
Background:
I have a textbox which allows a user to enter a filename. I would like to exclude invalid file characters from being entered into the textbox. A few of these characters are:
'?'
'\'
'<'
'>'
Although the...
how can I get the lines which are have selected text in them?
For example:
The selected lines would be 1, 2,3 and 4 (0 being the first line)
How can I get to code like:
For Each line as string(or integer) in textbox1."SelectedLines"
'Do something here for each line
Next
Thanks
...
how to create a pdf form ? i need to insert textbox and radio button controls in it.
...
Forgive me about the title, I have no idea what this is called.
I have a MS Access database set up, with a Period field that has either values 1, 2, 3, 4 or 5. I retrieve these values using a database connection and I would like to reference a particular control based on what period was grabbed from the database.
Here's example code, p...
I have textbox in one of my forms and i want to call a javascript function from a javascript file...
My code is
this.txtbox.Text = "";
this.txtbox.Location = new Point(10, 20);
this.txtbox.Size = new System.Drawing.Size(200, 100);
this.txtbox.Multiline = true;
this.Controls.Add(txtbox);
this.txtbox1.Text = "";
...
Forgive me about the title, I have no idea what this is called.
I have a MS Access database set up, with a Period field that has either values 1, 2, 3, 4 or 5. I retrieve these values using a database connection and I would like to reference a particular control based on what period was grabbed from the database.
Here's example code, p...
I have an asp.net textbox like this:
<asp:TextBox ID="PINPad" runat="server" Columns="6" MaxLength="4"
CssClass="PINTextClass"></asp:TextBox>
It is, as you might have guessed, the text box from an on screen PIN pad. Javascript fills in the values. The page is posted back every five seconds (using an update panel if that matter...
I've got a JS-generated fill-in-the-gap text/cloze and I'm having trouble adjusting the text boxes to the right size.
But unlike others I'm in the position of knowing exactly what the user will/should enter.
So, if I have a gap _______ like this, I want the input to be exactly 4 characters wide. However, maybe since I'm using a proport...
The following code should bind the "value" property of the text box to the string "Test".
Instead the binding expression "{{test}}" is left unparsed as the text box content.
The binding expression within the sibling element is parsed correctly however.
<html>
<head>
<title></title>
<style type="text/css">
.sys-templa...
Public Class MyTextBox
Inherits TextBox
Implements IPostBackEventHandler
Protected Overrides Sub OnInit(ByVal e As System.EventArgs)
MyBase.OnInit(e)
If Not Page.ClientScript.IsClientScriptBlockRegistered("OnBlurTextBoxEvent") Then
Page.ClientScript.RegisterStartupScript(MyBase.GetType, "OnBlurTextBoxEvent"...
Hi !
I've got Custom Control with a TextBox in the default Template.
The Custom Control has these 2 dependency properties (among others):
SelectedValue, NullText (text to appear in the TextBox when nothing is selected and the value is provided)
I'd like to set the TextBox.Text with the NullText value when the SelectedValue null is and...
I'm trying to figure out how to cancel user input in a TextBox when a validation error occurs. If the user attempts to enter an invalid character I would like to prevent it from being added to the TextBox.
How can I add to or modify the code below to prevent the TextBox from accepting invalid characters? Is it possible without listening...
Hi,
I'd like to add a description field to an application that can be as long as several lines (or even paragraphs) or as short as a one-liner.
Instead of taking up a lot of screen real estate or have scroll bars, it would be preferable to have the textbox grow based on its input.
On IE6 adding Style="overflow-y:visible" accomplishes...
Hi I'm facing a weird problem that only happens in FF. I have a TextBox control with OnTextChanged handler. The event handler is working fine most of the time, but when the user changed the text and press Enter in FF, the OnTextChanged event is called twice. I observed the problem in Firebug that the first request is actually canceled be...
Hey guys,
I'm making a SIMPLE, and when I mean simple, I mean simple. But any way, I have this thing where, the person enters in a word, and it will preview a text file. I have everything setup even the text reader, but something unusual I get in my code is the "if statement". Whenever I type in the word into the textbox, it won't run t...
How to change textbox focus color?
I am using diffrent colored textboxes. Example dark violet, but keyboard focus is black. This is bad combination. How i can change textbox focus to gain more visual contrast?
...
I'm using winforms and I've got a comboBox that represents an IQueryable. Below the combobox is a series of textboxes that I would like to be bound to the currently selected from the combo box.
Here is my code.
public partial class TestForm : Form
{
public DataClassesDataContext DataContext;
public IQueryable<T> datasource;...