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

Updating a secondary form without lose focus of the main form

I have this application in Delphi that has two forms one has a grid and another one has a map. Once you click in the grid the location of the vehicle is displayed on the map. My problem is every time I update the location in the map this map form…
Icaro
  • 14,585
  • 6
  • 60
  • 75
0
votes
1 answer

how to keep focus on jframe when jtextfield or button are selected

like the title says. I'm trying to figure out how to keep the focus on the JFrame or perhaps the window. So that when I press F1 on the keyboard, it activates a method. And it should also do it when I'm typing in a textfield. I have read through the…
0
votes
1 answer

How to focus on a textbox in a new page opened using fancybox?

i have 2 pages, page1 and page2. the page2 will be loaded in a fancybox upon click on a link in page1. i want to set the focus to a specific textbox on page2 after it has been loaded. may i know how to do that? many thanks!
lordrebs
  • 13
  • 3
0
votes
2 answers

Why does my .focus() not work on appended content?

I have a Facebook-like page with posts and comments. I have a Reply link on every post that, when clicked, should move the cursor to that post's comment form's text area, and it does. I just…
Suzanne
  • 21
  • 5
0
votes
2 answers

Focus on Keylistener

So what I've got is that I would love to try and make an little login applet. I'm using Java Windowsbuilder for it, to make it easyer for me. I hope the code isn't to messy, because I'm just a starter. The problem I've got is that My JButton "login"…
Milebril
  • 95
  • 1
  • 2
  • 9
0
votes
3 answers

Set system focuse to a particular component after an action event

I want when : comboBox.getSelectedIndex() == 1 Then system focus should set to my textField1 . this is my code: @Override public void actionPerformed(ActionEvent e) { if (e.getSource() == comboBox) { if (comboBox.getSelectedIndex() == 1)…
Sajad
  • 2,273
  • 11
  • 49
  • 92
0
votes
2 answers

MS-ACCESS Displaying record from one table, on a form bound to another based on combobox selection?

I need a poke in the right direction. I have a contact form that displays a persons information and I want it to also display location they work at(which is stored in another table). Now what I want to do is take that combobox with the location…
user2744572
  • 21
  • 1
  • 9
0
votes
1 answer

Java KeyListener does not work

I'm trying to do a program whit a JFrame window that get the users input from the keyboard. So if the user types a word the statement class should see if the word is in there and then print out . As it is now i can't get the statement class to work…
Donald
  • 11
  • 1
0
votes
1 answer

ASP.NET SetFocus works on Localhost but not working on Server

I have a website that is working well, except for one problem. I have a text field which takes in ID value of the member and populates the details of the member. When I try to fetch details of a user, the Cursor should automatically show up in the…
Anan
  • 103
  • 2
  • 13
0
votes
2 answers

Set focus on input field with jquery in specific table row

I have following html: .... .... .... <....> <....>
John N
  • 844
  • 4
  • 12
  • 20
0
votes
1 answer

C# Windows Forms: Topmost dialog not focused

My app displays a login box on start up, I've been able to make it top most, however it is not set focused until I click on it. How do you make it so it's automatically focused?
Perry Ismangil
  • 422
  • 4
  • 15
0
votes
1 answer

GWT : Focus goes away when i edited the text box and save it

I have one link on click of that link one can edit the name of that link in the text box. After editing save and close options are there. after saving this the focus goes out from the link i need that focus must be stay there on the link. I am…
Vaibhav Jain
  • 3,729
  • 3
  • 25
  • 42
0
votes
2 answers

Event function/Set focus Only works with MessageBox included

Essentially, this miniature Windows Form C# (.NET 3.5) application is having issues while listening to an event. I setup two buttons on my form to directly call my two primary functions (these are sending keystrokes to another process window and…
mbeacom
  • 1,466
  • 15
  • 25
0
votes
1 answer

AngularJS form input focus, data does not show in model

Newbie to AngularJS, sorry. I want certain form inputs to have focus set on them based on certain criteria. Found that answer already with this answer (focusMe). The problem is my form input does not show up in the model.
Lance Perry
  • 1,276
  • 2
  • 18
  • 28
0
votes
0 answers

How to set focus on next control when user presses enter

I am developing an asp.net web site for that I need a custom text-box control. In that text-box when ever user clicks on enter button it should set focus on next control of web form. How can I force it to set focus on next control in form using…
Ashish Rathore
  • 2,546
  • 9
  • 55
  • 91