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
2 answers

EditText stays behind the keyboard after first input

There are two EditText and if the user enters four character in the first one the focus automatically goes to the other EditText. And when the user enters the first char in the second EditText, the scroll breaks and this second edittext is start to…
ondermerol
  • 524
  • 1
  • 11
  • 29
0
votes
2 answers

MS Access: Use variables instead of text.SetFocus method to query

I have two parameters form a FROM and THRU textbox. The code object is txtFROM and txtTHRU. Now I tried to open the query and reports with a txtFROM.SetFocus and txtTHRU.SetFocus and used in the query criteria: Between…
safron6
  • 149
  • 1
  • 2
  • 13
0
votes
0 answers

Why do I get a null pointer exception when I do "myJButton.requestFocus"

So basically I made a UI with text fields and buttons. I want to have focus on the submit button when the window first starts up, but i get a null pointer exception right on that method. submitBTN.requestFocus(); Is there something I'm missing?
Andrew900460
  • 621
  • 1
  • 6
  • 16
0
votes
1 answer

Android on focus change listener is not working properly

I am working on an Android app and I am trying to implement a feature that I have found online. I am tying to do is when user clicks on edit text, for example, if user clicks on "Username" edit text, the setOnFocusChangeListener will check things…
Amit Pandya
  • 361
  • 1
  • 3
  • 19
0
votes
3 answers

How to set focus to a web element in Selenium webdriver

I am new to Selenium. I am learning by automating some test scenarios on MakeMyTrip website. Scenario: Editing the user account created. Code:(yet to be completed) public class AccountEdit { @Test public void AccEdit() { …
Rek Sel
  • 21
  • 1
  • 1
  • 2
0
votes
0 answers

if input has focus open keypad in iphone

on page load im focusing the input by finding the error class and it works fine in desktop and android, but not in iPhone. If someone has gone through this issue can you guys please suggest. Thanks!! DEMO : JS : (function($) { …
Developer
  • 1,409
  • 2
  • 23
  • 46
0
votes
1 answer

32 bit hook doesn't ignore 64 bit processes

I use a global CBT hook to recognize windows setfocus messages. When keyboard focus changes, I want my application to notice that. Therefore, I store the handle of my application using memory mapped files so that every process can use it for…
Airogat
  • 199
  • 1
  • 1
  • 10
0
votes
1 answer

Setting focus on LinearLayout

I am trying to set focus on a LinearLayout view when returning to an activity from another activity. The scenario: I have one activity with a bunch of LinearLayout items (with stuff in them), some of which are text, others photos. Let's say the top…
Stephen McCormick
  • 1,706
  • 22
  • 38
0
votes
1 answer

Focus on Spinner not Work

I have a spinner in my activity and i want that it open the select menu as soon as the activity starts This is my layout excerpt that the Spinner appears
0
votes
2 answers

$().focus not firing

I am trying to make an autocomplete functionality and want to apply focus to the first item in a list of matches once the user pressed the 'down' arrow. This fires on keyup within the search box and manages the type of keypress fine: var…
Tomuke
  • 869
  • 2
  • 8
  • 26
0
votes
2 answers

setFocus() causing two pushes to select imageview

I'm developing a game Android app and I have a HorizontalScrollView that is being populated with ImageViews. Each ImageView is clickable to select the level you want to play. I'm using a SavedPreference to keep track of the last played level, and…
0
votes
2 answers

How do I choose which gets focus in ng-repeat

I'm just starting to get to grips with angular and I am trying to do something that I think should be pretty simple, but I can't find anyone who has posted with exactly the same scenario. I have a collection which is initiated with three objects…
Aaron Reese
  • 131
  • 11
0
votes
2 answers

How to set focus for a composite field in dynamics crm 2013?

I'm trying to set focus on the address1_postalcode field during the contact form load event. However when the script is run it throws an error. Code: Xrm.Page.ui.controls.get('address1_postalcode').setFocus(); And here is the error message: I…
user2384794
  • 53
  • 1
  • 2
  • 13
0
votes
0 answers

VBA Userform Set Focus Issue

I have an issue that's been bugging me for a few hours now: I have a Clear Button on my Excel userform runs a subroutine that clears all data in my XY Frame. After running this, I want to return the focus to a textbox in the XY Frame. However, I…
shwan
  • 538
  • 6
  • 21
0
votes
1 answer

JavaScript & submit form & Enter & set focus to next element

I'm trying to create a simple submit form in WYSIWYG Web Designer 10 but I have a BIG problem with Enter key. There are several edit boxes on the form and I'd like to have the following functionality (via JavaScript): 1. Enter key on an Edit Box…