Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

The behavior of the LostFocus event depends on VB version

Total Hit ( 1709)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


The behavior of the LostFocus event has changed in the transition from VB4 to VB5. Under VB4, if a control on a form has the input focus and the user clicks on a toolbar button, the control fires a LostFocus event. Under VB5 and VB6, the same action doesn't fire any LostFocus event, so you must aware of this detail if you're porting an application from VB4 to a later version.

The behavior under VB5 and later versions is more consistent, because the toolbar should be considered as a sort of menu, and clicking on a menu doesn't raise any LostFocus event, under any version of VB.

Under VB6, however, this action raises a Validate event, so you have the opportunity to execute a piece of code when the focus leaves the control.


Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.