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 on textbox when starting webpage

When the webpage loads the focus is on the URL and not on the text box. Code used: On Page load: TextBox1.Focus(); and SetFocus(TextBox1); - Neither work On asp side on tried in content: defaultfocus="TextBox1" and OnLoad="Focus_Textbox" calling…
nadG
  • 167
  • 1
  • 7
  • 17
0
votes
1 answer

Sequence of events during form close event in vb.net

Trying to understand how best to handle a closing event. If I have multiple workspaces open that have children that when closed, may return data to the parent, which may mean the parent needs to process something, I am trying to figure the best…
BRisley
  • 11
  • 4
0
votes
0 answers

windows8 contest to take part

I'm trying to set focus on TextBox but Focus() method returns false this.NameTextBox.Focus(FocusState.Programmatic); However in msdn it is written: Focus(FocusState value) Return value: True if focus was set to the control, or focus was already…
0
votes
1 answer

modifying focus traversal in a JTree

I have a JTree that's working fine, with a mixture of leaf and non-leaf nodes. When I give the tree root focus, the down arrow and uparrow keys do the obvious thing. The small change I want to make is to have up/down arrow cause the focus to go to…
user1641082
  • 545
  • 4
  • 3
0
votes
1 answer

pyqt4: set focus for 4 child windows spawned from single parent

I have an issue with setting focus on one of four child windows from a main window. I tried setFocus to one of the four, but the main window still keeps the focus. I have a combo box that lets you choose which of the four windows to bring into…
Dave
  • 41
  • 4
0
votes
1 answer

Setting focus using left and right arrows (HTML + JS)

Is there any to make the left arrow behave like the tab button (set focus to the next focusable item) and the right arrow behave like a shift+tab (set focus to the previous focusable item)? I've gotten this far: $().keypress(function(e) { if…
Charlino
  • 15,802
  • 3
  • 58
  • 74
0
votes
2 answers

Show helper text on clicking textbox using jquery

I want to display helper text on clicking on the text boxes. eg: If I click a text box it should help us by saying what to type: Enter username here I have tried below given code but the text "Enter username" is fading out, I want the text to be…
Senthil Kumar Bhaskaran
  • 7,371
  • 9
  • 43
  • 56
0
votes
1 answer
0
votes
3 answers

How can you keep focus and cursor in Flex's TextInput after hitting enter?

I am a Flex newbie and I am testing a little application that simulates a cart. (It is based on a nice sample by Farata Systems' Yakov Fain). Note: I am using the beta of Flash Builder 4 to code the application. Here you have a link to the…
jfc
0
votes
1 answer

How limit focus selecting only in the specific container in android?

I write the android application optimized for D-Pad. I have several containers with widgets. The logic requires that user can select widgets in one specific container depending on application state. I there easy way to implement this logic?
Art Spasky
  • 1,635
  • 2
  • 17
  • 30
0
votes
1 answer

Changing value of input box with Javascript defeats following call to focus method

I have a web page that uses jQuery that has several input boxes. The input boxes are set to auto-select the existing text (value property) when the click() event fires. It was working great until I tried to pre-fill one of the input boxes from…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
0
votes
1 answer

Setting focus of input field in externally loaded swf

I'm loading a swf form into my swf movie (to save on file size). I have a 'faux-form' of static MCs in the main swf, and when a user clicks one, it loads the 'real form' which is its own swf file. What I want to do is properly set the focus of the…
jmarx34
  • 228
  • 2
  • 7
  • 25
0
votes
2 answers

Excel Userform Textbox Behavior

I have a textbox on a userform. It is the only textbox on the form. There are three labels and two buttons in addition to this textbox. Basically, I want the focus to remain on this textbox under all scenarios, other than the moment that one of the…
AndroidDev
  • 20,466
  • 42
  • 148
  • 239
-1
votes
1 answer

tkinter focus_set() not setting focus

I am trying to set focus on an entry window however I get an error throw every time. AttributeError: 'NoneType' object has no attribute 'focus_set' I looked up some examples of this and none of the suggestions worked. I'm assuming I have an error…
Devin Bowen
  • 127
  • 1
  • 1
  • 13
-1
votes
1 answer

Setting focus to the next field using jQuery onchange event

I have a form with a select element and an input field. I want to set the focus to the input field when the value of the select element changes. I tried using jQuery's focus() method, but it doesn't seem to work. Here's my code: function…
Atiq krl1
  • 57
  • 8
1 2 3
28
29