Click here to Skip to main content
16,020,622 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Andraw Tang17-Aug-10 8:12
Andraw Tang17-Aug-10 8:12 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Eddy Vluggen17-Aug-10 9:00
professionalEddy Vluggen17-Aug-10 9:00 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Andraw Tang17-Aug-10 8:26
Andraw Tang17-Aug-10 8:26 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Eddy Vluggen17-Aug-10 9:02
professionalEddy Vluggen17-Aug-10 9:02 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Andraw Tang17-Aug-10 9:17
Andraw Tang17-Aug-10 9:17 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Eddy Vluggen17-Aug-10 9:38
professionalEddy Vluggen17-Aug-10 9:38 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Andraw Tang17-Aug-10 9:55
Andraw Tang17-Aug-10 9:55 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Eddy Vluggen17-Aug-10 10:20
professionalEddy Vluggen17-Aug-10 10:20 
Your understanding is correct. A groupbox doesn't receive focus when you click it, and TextBox1 is still the active control. (The cursor is still blinking in that textbox, right?)

The Leave event is fired when the input-focus changes within your application. That happens when the user clicks a button, or moves the cursor to some other textbox. There's no way to indicate that someone is "finished" with typing in a textbox except for waiting until the focus moves away.

FWIW, you can set the ActiveControl property to Nothing if the user presses the enter-key.

What functionality are you trying to achieve? If you want to validate the contents of the input, that has it's own event. Take a look here[^] at the order in which events are fired, perhaps there's another way to achieve what you want Smile | :)
I are Troll Suspicious | :suss:

GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Andraw Tang17-Aug-10 10:29
Andraw Tang17-Aug-10 10:29 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Eddy Vluggen17-Aug-10 11:00
professionalEddy Vluggen17-Aug-10 11:00 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Andraw Tang17-Aug-10 11:15
Andraw Tang17-Aug-10 11:15 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Eddy Vluggen17-Aug-10 11:47
professionalEddy Vluggen17-Aug-10 11:47 
AnswerRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
nikhilhegde00717-Aug-10 21:40
nikhilhegde00717-Aug-10 21:40 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Andraw Tang18-Aug-10 4:27
Andraw Tang18-Aug-10 4:27 
QuestionFile.Delete Method Pin
98fireblade17-Aug-10 5:08
98fireblade17-Aug-10 5:08 
AnswerRe: File.Delete Method Pin
David Mujica17-Aug-10 5:22
David Mujica17-Aug-10 5:22 
GeneralRe: File.Delete Method Pin
98fireblade17-Aug-10 5:29
98fireblade17-Aug-10 5:29 
AnswerRe: File.Delete Method Pin
dan!sh 17-Aug-10 5:39
professional dan!sh 17-Aug-10 5:39 
GeneralRe: File.Delete Method Pin
98fireblade17-Aug-10 5:42
98fireblade17-Aug-10 5:42 
AnswerRe: File.Delete Method Pin
Luc Pattyn17-Aug-10 5:52
sitebuilderLuc Pattyn17-Aug-10 5:52 
GeneralRe: File.Delete Method Pin
98fireblade17-Aug-10 6:34
98fireblade17-Aug-10 6:34 
GeneralRe: File.Delete Method Pin
Eddy Vluggen17-Aug-10 8:55
professionalEddy Vluggen17-Aug-10 8:55 
AnswerRe: File.Delete Method Pin
Dave Kreskowiak17-Aug-10 6:22
mveDave Kreskowiak17-Aug-10 6:22 
GeneralRe: File.Delete Method Pin
98fireblade17-Aug-10 7:11
98fireblade17-Aug-10 7:11 
GeneralRe: File.Delete Method Pin
98fireblade17-Aug-10 8:30
98fireblade17-Aug-10 8:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.