All Questions
228
questions
1
vote
1
answer
56
views
WPF TextBox select content on mouse click
For WPF TextBox I need to select all content of it in case of mouse click on it (in "real life" it will be touch on touchpad monitor).
For test I created simple project and check the ...
1
vote
2
answers
58
views
Setting Focus on next item becoming visible while leaving ComboBox
I have a ComboBox with AutoCompleteMode set to Suggest. The next control in sequence is a TextBox. Depending on the selected item of the ComboBox the TextBox is visible or not visible. Furthermore ...
0
votes
0
answers
39
views
WPF Textbox : two textboxes, one need keybord focus and other needs selection of text using mouse
In User control,I have two textboxes
Textbox1 - readonly
Textbox2 - editable and it has focus now with code bellow
editableTextbox.CaretIndex = editableTextbox.Text.Length;
editableTextbox.Select(0, ...
-2
votes
2
answers
755
views
How do I execute my function whenever the input field loses its focus?
In Javascript, I want to execute my function whenever the textbox loses its focus. What's the easiest way to do this?
0
votes
2
answers
63
views
Incorrect Texbox Focus
I have a series of textboxes and I wish for the first one that has no text to have the focus and have used the following.
Private Sub Set_Box_Focus()
Dim txt2 As TextBox
For L = 0 To ...
0
votes
1
answer
251
views
KeyDown eventlistener not working after giving focus to textbox (C# Windows Forms)
I am wondering if there is a way to remove the focus off of a textbox so my keystrokes can be heard by the KeyDown eventlistener.
So far I have tried disabling the textbox, but that didn't fully ...
-1
votes
1
answer
243
views
Focus on the first empty textBox in C#
I am trying to focus on the first empty TextBox item.
How can I focus on the first empty TextBox?
1
vote
0
answers
96
views
UWP App stops accepting Focus-Events until switching to another app and back
we're developing a Universal Platform App which shows some unexpected behavior. Every now and then it's not possible anymore to focus a textbox. In fact you click/tap inside a textbox but it doesn't ...
2
votes
1
answer
205
views
WPF blocking InputBindings for shortcut when the focus is on TextBox kind of element
I need tabs in TabControl navigated using Ctrl + PageUp/PageDown - previous/next. Everything works fine, until there is a TextBox control inside of a Tab and there is a focus on it. Then the shortcut ...
0
votes
1
answer
138
views
GWT: Textbox doesn't show Cursor on Ipad
I am trying to implement a Textbox that can show fractions with GWT.
Therefor I have an Canvas were I can draw what I want and receive KeyEvents and MouseEvents.
But on Ipad (Safarie and Chrome) the ...
1
vote
1
answer
273
views
UWP TextBox focused but unable to type
My UWP app contains multiple textboxes but all of them are have the same problem. After clicking out and inside to the app directly on a textbox it receives the focus as it seems like but not able to ...
0
votes
0
answers
22
views
Control that is not focused is capturing key presses when another control is focused
I am writing a Windows Forms application. There are many TextBox in an user control. When that user control is shown after being hidden, and I focus on one Textbox and I begin typing, another Textbox ...
0
votes
1
answer
276
views
FocusElement does not change focus when I set it using a DataTrigger
I am making a window that shows the user multiple options, with each a radiobutton and a textbox.
When opening this window, the focus should be on the textbox corresponding to the radiobutton that ...
0
votes
0
answers
22
views
textbox defocuses after pressing tab key followed by any character in Firefox
I am trying to make an in-browser HTML editor, similar to CodePen and JSfiddle.I included a test to allow tabs without defocusing the editor. It works fine, except in Firefox. In Firefox, it keeps ...
1
vote
0
answers
67
views
Can't set keyboard focus to a TextBox
I'm using the System.Windows.Controls namespace to create a ContextMenu with a number of MenuItems. One of the MenuItems contains a TextBox as its header that, when clicked, should be given keyboard ...