How do you allow the controls of an application to go back to the cursor of the textbox after checking that the textbox has an empty input? what i want is just the cursor back to the textbox to allow easy user access. thx :)
I think you may want txtReminder.Select(); [Edit]@Ryshad:
The Focus method returns true if the control successfully received input focus. The control can have the input focus while not displaying any visual cues of having the focus. This behavior is primarily observed by the nonselectable controls listed below, or any controls derived from them.
Focus is a low-level method intended primarily for custom control authors. Instead, application programmers should use the Select method or the ActiveControl property for child controls, or the Activate method for forms.
Edited 6 Years Ago by nick.crane: Added info about Focus from MSDN
If your problem was solved remember to Mark This Thread as Solved.
Please try not to add new questions to old threads, it makes it harder for others find the solution posted and also limits the help you might receive.
The easiest way to "autohide" the menustrip is to set its Visible property to false then set it to True whenever the mouse enters it. Since it is not visible it wont fire its own MouseEnter or MouseLeave events so you can use the form's MouseMove event. See if you can find a way to tell if the mouse is over the control. if you get stuck post a new thread and we'll guide you through it.
@nick.crane - Wow, i am so not on form today. I may just retire whilst I'm very much not ahead lol.
I've used .Focus for years, and don't really read the msdn pages about stuff i already know :/ I learnt something here..time to break some old habits lol.
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"