Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem Closing Modal Form With Timer & Combobox -- Help
Message
 
To
11/10/2002 16:38:56
Jose' Johnson
Valley Baptist Health System
Harlingen, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00710509
Message ID:
00710518
Views:
14
Could a lostfocus or interactive change event in your combo be conflicting with your form release. Sometimes, a procedure in a PRG, may need to be called to do the housekeepping on the combo and close (shutdown) the VFP environment.



>Hello everyone,
>
>We are having a problem in one of our projects being developed using VFP 6 SP3. The form(s) in question have among other controls a timer and a dropdown combo box on it. What we want to happen is when a time period expires, the timer control issues a THISFORM.RELEASE to close the form. However, we have found that when
>
>1) the combobox has the focus , and
>2) the list associated with the combo is dropped down, and
>3) the mouse has been moved so that an item other than the first
> is now highlighted in the list
>
>we don't get the results we expect. When any other type of control has the focus or when the combo has the focus but is not dropped down, the form closes as expected. Under the above three conditions, a couple of things are happening. Most of the time, focus simply returns to the form rather than it closing. Other times we get the dreaded C0000005 error.
>
>This occurs in any form that has a combo and a timer and meets the above three conditions.
>
>Has anyone else ever run into this problem? And if so, how did you work around or fix it?
>
>Thanks in advance for any help.
>
>Regards,
>
>Jose'
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform