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

MS-Access 2010: setting focus without selecting / highlighting field contents

What I'm looking for is deselecting / dehighlighting a field's contents by using vba, just as if the user would click with the mouse in that field. Maybe the solution is too easy to have found its way to forums ? Simple goal, but it seems difficult…
Bughater
  • 53
  • 3
  • 9
0
votes
1 answer

How to set focus on MS Access form field by using a variable?

Looking for a way in a MS Access form to remember the field having the focus, switching the focus by code to other fields (requesting entries from the user) and at the end return to the fiels originally having the focus. I tried following code but…
Bughater
  • 53
  • 3
  • 9
0
votes
3 answers

MS Access how set focus on a particular multiple report instance

My problem is to set the focus on a particular Report instance opened . I copy a function which works perfectly for form object but not for Report object. My function: Function mInstanceReportCA(varYear As Variant) Dim oReport As Access.Report Dim…
informer
  • 33
  • 8
0
votes
1 answer

Is there a way to avoid holding the ALT key when cycling through input fields within a SAPUI5 table?

I have a SAPUI5 table which contains input fields. I have prepared an example at http://jsfiddle.net/bgerth/x8h92mz8/. When you press ALT+TAB you can cycle through the input fields within the table (I only found that out by looking at…
bgerth
  • 1,256
  • 1
  • 12
  • 19
0
votes
1 answer

After MsgBox, VBA ignores setfocus to ComboBox

After a messageBox answer, I want the user to be directed back to the ComboBox, 'aceCount'. However, it appears to be jumping over that line entirely. In the code below, I have two message boxes "Code working" and "After focus"; both show up so I…
aoman49
  • 7
  • 5
0
votes
3 answers

Eclipse Scout Neon scroll on position

I have some long form with lots of fields (and boxes). Because of this I would like to have some shortcuts buttons that will scroll to specific groupBox in form. I try getMyFieldInBox.requestFocus() witch works if field is not label or groupBox.…
Marko Zadravec
  • 8,298
  • 10
  • 55
  • 97
0
votes
0 answers

Set initial textbox focus on different tabs

I have a form with four tabs total, but only two of which accept input. The tab control is called tabControl1 and the two tabs that accept input are tabAddUser and tabDisclaimer. On the Ass User tab I want the initial focus to go to txtFirstName and…
user5360843
0
votes
1 answer

Powershell setfocus when textbox is full

Been doing a little bit of research on this and cant find a powershell answer, I need to change focus of one textbox to another when it is full. Example when inputting a phone number instead of having to press Tab after the area code it would shift…
Slyons
  • 117
  • 4
  • 20
0
votes
1 answer

Changing focusrectangle color in flex

I have a flex app, in which I need to change the color of the focus rectangle of a textinput if the input is empty. This used to work when I was writing inside a mx:script tag, but now I'm writing a new component (an AS3 class that inherits from…
Thiago
  • 2,238
  • 4
  • 29
  • 42
0
votes
1 answer

Set focus on a Canvas created programatically, in Windows Phone 8.1

I have an image of a map inside a scrollviewer and, using 2 canvas, I place a little square (or a map pin image) after the user selects where they are. Now, since they do not "click" on the map to do so, but they select their location from a list, I…
Gustavo
  • 33
  • 6
0
votes
0 answers

Set focus on next Textfield

I have some JavaFX TextFields that receives only one character. When typing this unique character the focus should move to the next Textfield control. Using Swing is easy (KeyboardFocusManager), but in JavaFX I have not found. I really apreciate any…
0
votes
1 answer

setting focus in txtboxes in vb6?

I'm working with this code for Validating a msktxtbox for Date. Everything works fine but what really annoys me is that after the msgbox pops out and user clicks ok, the focus does not go to mskDOB. it goes to the next "TAB INDEX" control. WHy is it…
barry17
  • 153
  • 2
  • 15
0
votes
2 answers

Weird focus() behavior

My goal is to open an input element in a popup and focus that input. So logically, I have tried $('#input').focus(), $('#input').first().focus(), and $('#input')[0].focus(), but they do not work; but when I change tab and come back to my tab the…
Grissom
  • 1,080
  • 8
  • 21
0
votes
1 answer

How to intercept the TAB key press to focus on a check box which becomes enabled after TAB key was pressed?

When we press the TAB key we change the focus to the next control in the given tab order. In my case when I click on a check box (say X) then after pressing Tab button the control is going on a text field instead of going on next check box (say Y)…
0
votes
1 answer

Windows 7 not firing WM_SETFOCUS when switching nodes within a tree control

My application has a tree of type CTreeCtrl. One of the nodes of the tree is CComboBox control created as a child of this tree structure. c_combo->Create( WS_CHILD | WS_VISIBLE | WS_VSCROLL | CBS_HASSTRINGS | CBS_DROPDOWNLIST, myrect, m_pTree,…
maverick
  • 1
  • 3