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

Setting the focus depth of the AVCaptureDevice ios

I want to set the focus of the camera to be a fixed value (in my case 6"). Objects that are 6in from the camera will be in focus and anything else will be out of focus. But I don't see any way to hook into the focus value of the iphone camera. You…
jmel
  • 5
  • 3
0
votes
0 answers

set focus on search textbox instead of address bar on google-chrome-extension

I've tried to create a simple google-chrome-extension for a custom new tab. I've used two files to do it: manifest.json: { "name": "focus", "version": "0.2", "chrome_url_overrides": { "newtab": "new.html" }, "manifest_version":…
0
votes
0 answers

focus form element on mouseup or click

I'm trying to focus a form element on mouseup or click after a form validation function has been called on mousedown. I can't figure out how to focus the invalid form element on one click of the submit button - which validates the…
neridaj
  • 2,143
  • 9
  • 31
  • 62
0
votes
1 answer

focus a parent window using href accesskey

I included a bank calculator tool inside a website. This calculator is opened on a new window. The problem I'm facing is that users need a shortcut to open multiple times the calculator, so I found the accesskey, it works the first time you use…
Gerardo Abdo
  • 1,150
  • 3
  • 10
  • 16
0
votes
1 answer

Can we fire any event for Tab key using while going through the data grid view text box column in desktop application

I have a grid view of type data grid view text box column. There are following fields in the grid. Sr.No | Description | HSNCode | Qty | Rate | Amount The Sr.No and the Amount is generated in the program. My problem is that when I am using tab key…
0
votes
2 answers

How to set focus to textbox on Onchange event of dropdown?

I have textbox whose visibility is controlled by value selected in telerik dropdown. Say if value selected is yes then textbox is visible else it hides. Now when value in dropdown set to Yes i am not able to set focus to that textbox. Only on…
Krish
  • 43
  • 1
  • 13
0
votes
1 answer

Setting Focus after Div Animation

I'm trying to set the focus to an element in a hidden div, after I call the Show method. Here is the code: //Show the Bottom Div $('#dvBottom').show('medium', function() { switch (hdnGenerateScaffoldCount.value.toUpperCase()) { case…
Terry Slack
  • 571
  • 5
  • 6
0
votes
1 answer

set focus to java-inputdialog inside webbrowser over vb.net

I have a small application with a webbrowser in it. in this webbrowser a webpage is loaded with a JAVA applet. this java applet has input prompts like the one shown in the image i would need to be able to type a text inside this input dialog over a…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
0
votes
1 answer

Getting the name or ID of the User Name TextBox from an ASP.Net Login Control

In this ASP.Net Login Control can you tell me what ID or Name ASP.Net gives the User Name TextBox?
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
0
votes
1 answer

How to get focus to IE8 window ? SetForegroundWindow()?

I am using the following line SetForegroundWindow(hWnd); in c++ to get focus to an ie8 window. What actually happens is , i get focus for 2 times and after that if i open the next time instead of getting the focus, it just blinks in the taskbar…
Vicky
  • 37
  • 2
  • 2
  • 7
0
votes
0 answers

Mouselistener wont apply to panel

So I created a handling class that implements the MouseListener (this one works). As the program runs some resources are being loaded and it creates the panel to be used for the MouseListener etc... Then when everything is done it's suppose to…
David Ekermann
  • 87
  • 3
  • 13
0
votes
3 answers

How to use Regular Expression with FindWindow?

I am ultimately trying to write something that will check if a specific window exists, and set it as active in the event it is. I was able to use FindWindow to find a literal windows name. int hWnd = FindWindow(null, "121226-000377 - company - …
Fuzz Evans
  • 2,893
  • 11
  • 44
  • 63
0
votes
1 answer

How to set focus on login box that render when click on sub menu bar?

I have menu bar that consist on menu and login.Each of this menu has its own sub menu.When I click on the submenu, it will render panel group layout that contain input text for login such as username and password.My question is how to set focus on…
Reena Sham
  • 41
  • 3
  • 8
0
votes
1 answer

Giving a button mouse click focus

Hopefully I can explain this well enough to make sense. My cousin is disabled and used a single button to control applications on the computer. All these applications are custom made and they rely on buttons that cycle focus and highlight in bold.…
Michael Esteves
  • 1,445
  • 3
  • 21
  • 38
0
votes
1 answer

Why doesn't GotFocus run when SetFocus is called?

I have a breakpoint on the first line of a TextBox1.GotFocus event function. When I call TextBox1.SetFocus elsewhere, the GotFocus breakpoint is never hit. Why? Code in calling function: Text1.SetFocus Private Sub Text1_GotFocus() // code…
CJ7
  • 22,579
  • 65
  • 193
  • 321