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

How to add focus to textformfield which has validation error

I have textformfields in my form. When I click on submit button the validation error displays under the textformfield. I want to add focus to that particular field so when user clicks on save button the field pops up. user should not need to scroll…
Fathima Shafana
  • 107
  • 1
  • 3
  • 11
-1
votes
3 answers

Is SetFocus a Function?

I saw this line of code txtNewCaption.SetFocus and was told that SetFocus is used as a sub here but it is also a function. I also read online that the difference between a sub and a function is that a sub doesn't return any value but a function…
Edward
  • 3
  • 1
-1
votes
1 answer

tab navigation and scroll

I have table which has many column, so there is a horizontal scroll bar. let's say I have 10 column, 7 are visible, 3 are not. the problem I have now is: if the cell is invisible and it has value, when I use tab navigate to that cell and set focus…
Jun Wu
  • 35
  • 1
  • 9
-1
votes
1 answer

If another instance is running, [set focus] and open file on the 'old' instance

How can i check if another instance is running ? Also if it is running how can I force my already opened instance to open a file ? Also if it is possible can I force it to get focus? ( I need this seperate)
Mitcoc
  • 31
  • 1
  • 9
-1
votes
1 answer

Angularjs - Focus Management

For an application which is close to be developed completely, requirement is to make focus management. The popup opened should focus on the first HTML element On successful login, the focus should point to navigation links. On every route or page…
GOK
  • 2,338
  • 6
  • 34
  • 63
-1
votes
1 answer

Limiting input characters and focusing to the next input box - VB.Net

I have 6 textboxes that I want to use for password validation. How can I: limit the number of characters the user can enter into each password field to X-characters; and ensure that text that are being entered into each field automatically flow…
Iki
  • 119
  • 2
  • 4
  • 18
-1
votes
1 answer

Move to next enabled text filed on keypress event using jquery

I have a form containing many text fields which are generated dynamically some of the filed are disabled. I want that when user presses enter key in any textbox I move focus to next enabled textbox. currently I am using following script to stop…
Muhammad Saifullah
  • 4,292
  • 1
  • 29
  • 59
-1
votes
1 answer

How can I set focus to explorer in C# WindowsApiCodepack, when used in WPF via WindowsFormsHost

i´m writing a small C# Wpf application and I integrated the ExplorerBrowser of the WindowsApiCodepack. This is working really nice. The only problem I have and where I haven´t found a solution so far is: How can I programatically set the focus…
SteveTc
  • 1
  • 1
-1
votes
1 answer

jQuery conflict with set focus and scrollTop

I am trying to set focus to a text input box in document ready function this works great except the input box is in a fieldset about 50 px down the page so the page header is not visible when the input box get focus I tried to use…
Vector
  • 3,066
  • 5
  • 27
  • 54
-3
votes
1 answer

Send text from NotePad to unfocused Form1

This time I have a reciveText.txt open and with the focal point in this txt file and I want to write some text on it; and simultaneously write the same text in a textBox of a Form that will be in secon plane, I mean, without focal point. How can I…
1 2 3
28
29