tagged [focus]
jQuery lose focus event
jQuery lose focus event I'm trying to show up a container if a input field gets the focus and - that's the actual problem - hide the container if focus is lost. Is there an opposite event for jQuery's...
- Modified
- 6 Oct at 09:49
to focus on the window.open and current window
to focus on the window.open and current window It seems simple but I did not find a way. I open a window: a. I need that while opening the window is minimized. b. when finished loading, I need to be n...
- Modified
- 29 Sep at 20:42
Winforms c# - Set focus to first child control of TabPage
Winforms c# - Set focus to first child control of TabPage Say I have a `Textbox` nested within a `TabControl`. When the form loads, I would like to focus on that `Textbox` (by default the focus is se...
How to determine which control on form has focus?
How to determine which control on form has focus? I've read elsewhere on here that to capture "Enter" key stroke in a text box and use it as if pushing a button I should set the KeyPreview property of...
Detecting a control's focus in Silverlight
Detecting a control's focus in Silverlight Is there any way to tell whether a control (specifically a System.Windows.Controls.TextBox) is focused in Silverlight? I'm looking for something like the fol...
- Modified
- 22 Aug at 19:41
WPF how to make textbox lose focus after hitting enter
WPF how to make textbox lose focus after hitting enter I created some textboxes and I want user to enter decimal values into them. In every application I have ever used, when I type something into the...
Using :focus to style outer div?
Using :focus to style outer div? When I begin writing text in the textarea, I want the outer div, with a class box, to have its border turned solid instead of dashed, but somehow the :focus doesn't ap...
- Modified
- 10 Jan at 12:26
WPF - Remove focus when clicking outside of a textbox
WPF - Remove focus when clicking outside of a textbox I have some textboxes where I would like focus to behave a little differently than normal for a WPF application. Basically, I would like them to b...
Set focus to field in dynamically loaded DIV
Set focus to field in dynamically loaded DIV What is the proper method to set the focus to a specific field within a dynamically loaded DIV? ``` $("#display").load("?control=msgs"); // loads the HTML ...
WPF Reset Focus on Button Click
WPF Reset Focus on Button Click I have a `TextBox` and a `ToolBar` with a `Button`. If I'm typing in the `TextBox` and I click the `Button` I want the `TextBox` to lose `Focus` so the binding gets upd...
- Modified
- 15 Sep at 18:52
C# ComboBox GotFocus
C# ComboBox GotFocus I have a C# `ComboBox` using WPF. I have code that executes when the `ComboBox`'s `GotFocus` is activated. The issue is that the `GotFocus` event is executed every time a selectio...
How to force a focus on a control in windows forms
How to force a focus on a control in windows forms I am trying to focus a "search" textbox control in my windows forms application. This textbox is inside a user control, which is inside a panel which...
EditText, clear focus on touch outside
EditText, clear focus on touch outside My layout contains `ListView`, `SurfaceView` and `EditText`. When I click on the `EditText`, it receives focus and the on-screen keyboard pops up. When I click s...
- Modified
- 14 Sep at 16:37
CSS Input field text color of inputted text
CSS Input field text color of inputted text I have an input field, and the color of the text in it is black. (I'm using jquery.placeholder) Let's say the text in there is "E-Mail" When you click on th...
How to set focus from ViewModel in Xamarin Forms
How to set focus from ViewModel in Xamarin Forms I want to in a `SearchBox` control after do some asynchronous operations, and I would like to do it my . How could I do this possible? EDIT ViewModel c...
- Modified
- 26 Aug at 09:20
How to set focus to a control in a Windows Forms application?
How to set focus to a control in a Windows Forms application? In a Windows Forms application, do I write the code to set the focus to a control both while the application is launched and subsequently ...
- Modified
- 3 Jun at 11:9
Setting the Focus to an Entry in Xamarin.Forms
Setting the Focus to an Entry in Xamarin.Forms This is just a simplified example, but I'm trying to set this up so that when I open up this page in my Application, the first thing that happens is the ...
WPF - Set Focus when a button is clicked - No Code Behind
WPF - Set Focus when a button is clicked - No Code Behind Is there a way to set `Focus` from one control to another using WPF `Trigger`s? Like the following example: ```
- Modified
- 18 Sep at 17:51
How to set/change/remove focus style on a Button in C#?
How to set/change/remove focus style on a Button in C#? I have a couple of buttons of which I modified how they look. I have set them as flat buttons with a background and a custom border so they look...
How to change listview selected row backcolor even when focus on another control?
How to change listview selected row backcolor even when focus on another control? I have a program which uses a barcode scanner as input device so that means I need to keep the focus on a text box. Th...
Have to click away twice from Calendar in WPF
Have to click away twice from Calendar in WPF Edit 2: Thank you all for your feedback. I solved the problem by adding this to my SelectedDatesChanged event: `Mouse.Capture(null);` When I select a date...