hi,
We need to stop copy paste of few characters like '<' or '>' or any characters which can be potentially dangerous.
I know we can set a property RequestValidation to false, but for some reason we would not want to do that.
What we want to do is when the user tries to paste a text in the textbox, we want to validate the text and do...
I'm generating a matrix report in Oracle APEX. I've got the values displaying properly, but when I click the "Edit button", I want all the cells to turn into textboxes.
I know that you can do this by changing some settings in the Report Attributes, but the problem is my matrix report is dynamic, which means that I do not know in advance...
I have a WPF user control with a number of textboxes, this is hosted on a WPF window.
The textboxes are not currently bound but I cannot type into any of them.
I have put a breakpoint in the KeyDown event of one of the textboxes and it hits it fine and I can see the key I pressed.
The textboxes are declared as
<TextBox Grid.Row="3"...
i have a textbox associated with a calendar extender and a masked edit extender in a asp.net 3.5 project. i would like to clear the texbox when OnBlur...i have tried using the code below but it not working! any ideas guy?
document.getElementById('txtDtTo').value ="";
...
Thats it really..
I am using VS2008 Express.
All the samples say just to set the PasswordChar, but nothing gets masked.
I also tried setting the "UseSystemPasswordChar" = true.. no luck..
// Set to no text.
textBox1.Text = "";
// The password character is an asterisk.
textBox1.PasswordChar = '*';
// The control will al...
Hi,
I am using the AJAX Autocomplete extender for ASP.NET 2. Everything works fine...I am calling a webservice which gets me the values to fill the drop down with after 3 letters are typed into certain es. I have set the maxheight attribute and am using a scrollbar in case there are more entries than would fit that height.
However, I no...
hi
In a .aspx web page, by setting a textbox's text property by code in run time, will Textchanged event handler of that textbox be fired?
...
EDIT: Accepted answer points out what my issue was. I added another answer which shows an even easier way.
I have a multiline textbox from which I create a single string:
Dim wholeThing As String
Dim line as String
For Each line In txtMultiline.Lines
wholeThing = wholeThing & line & Environment.Newline
Next
...
Hi!
I want to override the default TextBox borders in WPF. I have this style that applies on all TextBoxes.
<!-- StyleTextBox-->
<Style x:Key="StyleTextBox" TargetType="{x:Type TextBox}">
<Setter Property="MinHeight" Value="20" />
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="Margin" Value="3"/>
...
I have a Winforms dialog that contains among other controls a TextBox that allows a single line of input. I would like to allow the user to be able to press Ctrl-Backspace to delete an entire word. This is not the default behaviour with the out-of-the-box TextBox; I get a rectangle character, rather than having the word deleted.
I have...
I have a textbox that i am binding to the viewmodel's string property. The string property is updated within the viewmodel and it displays the text within the textbox through binding.
The issue is that i want to insert the line break after a certain number of characters in the string property and i want that the line break is shown over...
I have an application that declares textboxes in various places, like in styles and datatemplates, and now I'm in a situation where I need to change every textbox's standard behavior for getting and losing focus.
What's a good way to do this?
I was thinking of two solutions: one is to derive a new class from TextBox, which I understan...
I've got a textbox, and I want to select a substring programatically. Is there an easy way to do this?
...
Hello,
Does anyone have an idea how I can disable Drag & Drop for all my TextBox Elements?
I found something here , but that would need me to run a loop for all Elements..
Thank you!
EDIT
Thanks a lot for the help!
...
I have observed some unexpected or at least not-perfectly-matching-my-needs behaviour of textboxes bound to textproperties when I can't use using UpdateTrigger=PropertyChanged for my binding. Probably it is not an issue with the textbox but will occur with other editors as well.
In my example (source code attached), I have a WPF TabCont...
I'm looking to display text with the wavey red lines where a word is misspelt, but I only want the text to be selectable, not editable. If I set the TextBox's IsReadOnly property to True or IsEnabled to False, the wavey red lines disappear and I can't get around it by putting something transparent as this will prevent the user being able...
I want to validate the user's input and I want to inform him/her about validation error with changing background color of a standard Windows Forms TextBox control.
But instead of changing color immediately I would like to use a color fading effect, like here (click on input to see fade in effect, click again to fade out).
Is there any ...
I need to remove the focus from several textboxes; I tried using:
textBox.Focused = false;
but the property is read only. I then tried setting the focus on the form, so as to remove it from all the textboxes, but this also fails to work:
this.Focus();
and the function returns false when a textbox is selected. So; how do I remove fo...
Hello,
I want to list the values in the database in a datagrid or listbox according to the character typed in the textbox . for example : if i type "a" then list all the values starting with "a", if "ab" then so.
Please help me
...
Hi all,
Having a slight problem on C#, still quite new to the language but hoping you can help. I have a program which dynamically creates tab forms and then I'm trying to add controls to the tabform (text boxes and labels), but no matter what I try it just doesn't seem to want to work. Here's the code I'm currently using (just to get o...