Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 16th, 2005, 01:02 PM
Authorized User
 
Join Date: Oct 2004
Location: , , United Kingdom.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default exe behaves differently

Hi

hope someone out there can let me know why my vb program behaves differently when i run it from the exe from when i run it from within the program. When ran from the exe the program runs through the code within a lostFocus sub but doesnot run through this when program is ran from the exe...

 
Old March 16th, 2005, 01:44 PM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there..

it's a lost focus for wich control???

HTH

Gonzalo
 
Old March 16th, 2005, 03:41 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

if running from the IDE you put a breakpoint, when the break point is reached the 'whatever' control loses its focus. In the executable, the only way to get a lost focus event is to click on some other control (that can get the focus)
Or am I missing something here?
Marco
 
Old April 20th, 2005, 12:27 AM
Registered User
 
Join Date: Apr 2005
Location: Hyderabad, AP, India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Hi..

Some times code in IDE and exe behaves little different, especially for lostfocus events.
If you specifically does not require lostfocus event you use validate event instead.
Or you can monitor events by writing debug code in events to a file

Zaheer


 
Old May 13th, 2005, 01:28 PM
Authorized User
 
Join Date: Jul 2004
Location: lagos, ikeja, Nigeria.
Posts: 34
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via ICQ to chipset Send a message via MSN to chipset Send a message via Yahoo to chipset
Default

hi
i suggest you make use of 'validate event' instead.

Arowolo
 
Old May 16th, 2005, 03:24 AM
Authorized User
 
Join Date: Oct 2004
Location: , , United Kingdom.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi ,
yes the validate event works a lot better, wish i had known about this event ages ago...thanks







Similar Threads
Thread Thread Starter Forum Replies Last Post
Float acts differently in IE6 than IE7 rsearing CSS Cascading Style Sheets 3 August 30th, 2007 03:01 AM
Opinion - How would you of done this differently? dparsons Intro Programming 0 May 15th, 2007 02:00 PM
httpWebRequest created differently jlento General .NET 0 November 9th, 2004 05:13 PM
EXE file behaving differently on different comp. Gert C++ Programming 3 September 18th, 2003 05:19 PM
one webpage prints out differently to others KiloKilo HTML Code Clinic 1 July 21st, 2003 10:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.