Questions tagged [setfocus]

For questions related to the SetFocus method, which moves the focus to the specified form or Window.

The SetFocus method moves the focus to the specified Form, the specified control on the Form/Window, or to the specified Window. You can use the SetFocus method when you want a particular field or control or Window to have the focus so that all user input is directed to this object.

430 questions
0
votes
1 answer

Set focus and select content element on error using PHP

I would like to set the focus and then select the contents (in case text input type) for several object types in my page. In my form I have these type of objects: text checkbox radio and also Select object (this is a drop-down list). I have a…
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
1 answer

How to SetFocus in Silverlight

I have a Silverlight app with a user control that has several text boxes. I am using the MVVM pattern. When I click the Add button, the ViewModel performs some logic. After the Add Command logic is complete, I want to SetFocus to the txtName textbox…
Jerry
  • 6,357
  • 8
  • 35
  • 50
0
votes
1 answer

SetFocus is getting ignored - Why?

I have 2 fields - txtTR1_Unit and cmbTR2_Unit. Together, these 2 fields represent the total UNIT. cmbTR2_Unit has a list of unique values that when selected - txtTR1_Unit automatically gets the related value. I've created a function called…
plateriot
  • 361
  • 5
  • 23
0
votes
1 answer

How to remove and re-set focus on input when hovering over other element

I use Bootstrap 3 and have a standard input field that looks as follows on which I set focus via jQuery on pageload: My Input: My jQuery: $('#searchTerm').focus(); On the same page I have a…
user2571510
  • 11,167
  • 39
  • 92
  • 138
0
votes
0 answers

Get Focus to Frame after unhiding in OS X

I have a problem with getting focus to a JFrame after unhiding it, I am running OS X. Specifically, I am setting the DEFAUL_CLOSE_OPERATION to be HIDE_ON_CLOSE then I am using jnativehook library to get a global shortcut to unhide the application,…
iShaalan
  • 799
  • 2
  • 10
  • 30
0
votes
3 answers

Always return focus to a specific input field

I do not think this exact question has an answer anywhere else. I have a page with a couple of input fields, and lots of ajax activity for various things. It is an online POS interface. When any of the ajax actions are performed, ususally by a…
user2204809
  • 11
  • 1
  • 2
0
votes
0 answers

Vuforia AR camera tracking 2 markers, and manually set focus to one moving marker on Android?

I'm using Vuforia in Unity to track 2 AR markers (without a fixed spatial relationship), and 1 marker is always out of focus (when moving it). Therefore, I think the Vuforia multi-targets case doesn't apply to it well? I'm thinking maybe to touch a…
sophia
  • 421
  • 7
  • 20
0
votes
1 answer

Trouble with SetFocus property and SubForms in Access

I have a MainForm with 4 other subforms on it. These subforms are visible and invisible based on user selection on the main form. The visible/invisible works like a charm but I am having trouble with setting the focus on these subforms. what I am…
Yusuf N.
  • 27
  • 6
0
votes
0 answers

How to set focus on a newly inserted row in a asp:gridview?

when data is inserted into database on button click, asp:gridview is filled and displayed. i want to set focus on the newly inserted row. I am adding data one at a time. so only one row is to be focused at a time.. please help code in cs…
Shona
  • 1
  • 2
0
votes
1 answer

How to set the selected list item as completely visible in android list view?

I have a simple onclick listener. On click of any list item, I have to make that list item completely visible. For example I have 10 items in list view, if I click the 10th item which is partially visible, the complete list item should get…
0
votes
1 answer

How to get my VB.net form to focus above existing users windows and applications?

I have a Visual Basic .Net form (launches after the splash screen tests database connectivity) and it is not focusing above other existing windows on launch. How do I get it to focus above all existing windows and Windows Explorer windows?
Jeremy Child
  • 172
  • 1
  • 4
  • 8
0
votes
1 answer

Tinkter Keep focus on withdrawn frame ( actually WINDOW)

So I want to have the toplevel frame keep focus after it has been withdrawn. from Tkinter import * class VanishingFrame(): def __init__(self,parent,Event=None): self.parent=parent self.visible=True …
Burtski
  • 451
  • 5
  • 19
0
votes
1 answer

set focus to user control, and blur base page

I have a progress bar (which is a user control). When user, click a button, this progressbar will get displayed. The issue is ...even if the progressbar is visible, I am able to set focus to other controls in base page. I need to blur the base…
Anish Mohan
  • 55
  • 1
  • 11
0
votes
2 answers

Disabling input tags and focusing on submit button

I have a code here for disabling the radio on a form and focusing on the submit button right after the timer expires. But this code seems not to work. Can you tell me what's wrong with my code or if you have any alternative with this? I'm using…
Nixxhalle
  • 97
  • 3
  • 5
  • 10
0
votes
1 answer

How do I setFocus on event.phase == "moved" in Corona SDK?

I am quite new to Corona SDK and could use some help. I am creating a connect the dots game and am running into a problem with re-setting focus. Each dot has an onTouch event: function onTouch(self, event) if event.phase == "began" then …
jon
  • 170
  • 1
  • 13