In Visual Studio's output window, you can position your text caret at the end of the output so that the textbox scrolls down automatically when new text is logged. And when the caret is not at the end, it won't scroll down. I would like to mimic this with a WPF TextBox.
I was able to do it, but only if the TextBox is not read-only. That...
I built a quiz game with a cartoon question bubble. The bubble is re sized to the length of the question. I want to a change event on the dynamic textbox to call a function that changes the size of the question bubble.
However, the change event is never called when my textbox value is modified dynamically from code.
question_txt.add...
Already asked but no answer:
Using OpenOffice.org Writer, one can easily make simple pdf forms (since Writer does XForms, and can export to PDF, and embed the form using FDF). I'd like to make a text entry field with this property:
* if the field overflows, put the overflow on an additional page, or in some special area on the page, lab...
I had a cursorposition property in my viewmodel that decides the position of cursor in textbox on the view. How can i bind the cursorposition property to actual position of the cursor inside the textbox.
...
A text box and label are both currently selected. They are the only controls
selected. Which of the following is NOT true?
a) A text property is displayed in the Property window and if both controls
have the same text property value it will be displayed otherwise no text
property value will be displayed
b) Setting the value of any prop...
Hi
I have a itemscontrol that displays some textboxes dependning on the observable collection items in viewmodel. I need to determine the textbox that has keyboard focus on click of a button outside the itemscontrol.
Problem:
1. When i click the button the keyboard focus shifts to button instead of the textbox.
2. How can i get the a ...
Hi
I need to set the cursorposition inside the passwordbox explicitlyin WPF. i couldn't see the selectionstart property in passwordbox.
Any help?
...
I am making a Help-form for my application. A Help-form normally has a ListView on the left and a RichTextbox on the right. When you click on a Help topic in the ListView, the text in the RichTextbox is supposed to change accordingly. The text file is part of the application's resources.
Any help will be much appreciated.
Thanks.
...
I'm trying to validate a multiline textbox control as follows:
My content page (I'm using master pages) contains a text box control with a custom validator:
<asp:TextBox ID="IssueDescription" TextMode="MultiLine"
Columns="40" Rows="5" runat="server" CssClass="textbox">
</asp:TextBox>
<asp:CustomValidator ID="IssueDescValid...
The following XAML produces a window with strange behavior around the textbox:
<Window x:Class="WpfSandbox.CuriousExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="CuriousExample" Height="300" Width="300">
<DockPanel Margin="15">
...
I am facing problem with input text type (ie. Text Box).
I have written a function used by the onkeyup event on a Text Box. The line looks like this:
<input type='TEXT' value='abc' onkeyup='changeSomething( this );'>
But now I am facing problem that when user selects values from the previously entered values,
I am not getting any ev...
While saving a .rtf file from rich text box the file orientation is not preserved, can anyone give me the solution for this?
...
I am trying to get an textBox to fire it's onTextChanged event every time a keystroke is made rather than only firing only when it looses focus. I thought that adding the AsyncPostBackTrigger would do this but it's still not working. Is what I'm trying to do even possible? The code is below:
<%@ Page Language="C#" AutoEventWireup="tr...
I have an ASP.NET gridview that has dataentry textboxes in the footer row. After the user adds a row, I reset focus to the first textbox in the codebehind using something like Textbox1.focus() in the gridview update handler. The problem is that although it looks like the textbox gets focus (the cursor is flashing in the textbox) you can'...
Say I have a grid and I click an object and it displays in a detail screen,And I don't want the user to edit some data so I set the TextBox as disabled? then will binding work.Basically what I want is the TextBox to be greyed or disabled ya know? Well how about it in WPF? Can someone explain?
...
How can I find the screen position of the caret for a standard Winforms TextBox?
...
I want to insert a textbox control into a gridview,so that I can enter a value into the textbox at runtime?
...
Hi guys,
Yet another newbie with ASP.NET MVC! All I intend to do is for a search textbox on my page, if I type something and click search, the url to be redirected to should have the following at the end, like in stackoverflow,
/search?q=searchedtext
So here is what I have now,
<input id="searchText" maxlength="100" type="text"...
How can I make the textbox contents to ANSI format when paste in C#?
...
Has anyone found a workaround yet for getting custom dictionary support working for the built in spellchecking on WPF TextBoxes/RichTextBoxes? We've been probing the spelling stuff with reflector hoping to find where the dictionary entries are coming from, but it's looking very much like it's going to be a COM object....
I know it's not...