Connecting Tech Pros Worldwide Forums | Help | Site Map

API Browse Folder Dialog - hamgs if open when closing Access

rdemyan
Guest
 
Posts: n/a
#1: Oct 22 '06
I'm using code from the following web page to open the API Browse Folder
dialog

http://www.mvps.org/access/api/api0002.htm

It all works fine. But if the dialog box is open and the user closes Access,
the system just hangs and Access apparantly cannot close. I have to open the
Windows Task Manager and force the closing (and even that takes quite awhile).


I'm not familiar with API coding. Is there someway to bring up this dialog
box modally, so that it has to be closed before the user can do anything else.


Thanks.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200610/1


MGFoster
Guest
 
Posts: n/a
#2: Oct 22 '06

re: API Browse Folder Dialog - hamgs if open when closing Access


rdemyan wrote:
Quote:
I'm using code from the following web page to open the API Browse Folder
dialog
>
http://www.mvps.org/access/api/api0002.htm
>
It all works fine. But if the dialog box is open and the user closes Access,
the system just hangs and Access apparantly cannot close. I have to open the
Windows Task Manager and force the closing (and even that takes quite awhile).
>
>
I'm not familiar with API coding. Is there someway to bring up this dialog
box modally, so that it has to be closed before the user can do anything else.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm using Access 2002 & I can't close Access when I have the File
Open/Save dialog box open; it is modal. So how are your users closing
Access when this dialog box is open?
--
MGFoster:::mgf00 <atearthlink <decimal-pointnet
Oakland, CA (USA)
** Respond only to this newsgroup. I DO NOT respond to emails **

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBRTu/JYechKqOuFEgEQI4hwCeObl9lEe10CpVy3/ooQP2/ZQHw0wAoLtw
Dl0lgNRIpdKMOwG4slCXSS3U
=snBq
-----END PGP SIGNATURE-----
rdemyan via AccessMonster.com
Guest
 
Posts: n/a
#3: Oct 22 '06

re: API Browse Folder Dialog - hamgs if open when closing Access


I have A2003.

The API dialog box is called from one of my modal/popup forms. When it is
open, if I click the 'X' in the control box of my modal/popup form, my
modal/popup form closes. If I then click the 'X' in the control box for the
Access container, it tries to close Access. An hourglass appears and
everything hangs.

MGFoster wrote:
Quote:
Quote:
>I'm using code from the following web page to open the API Browse Folder
>dialog
>[quoted text clipped - 7 lines]
Quote:
>I'm not familiar with API coding. Is there someway to bring up this dialog
>box modally, so that it has to be closed before the user can do anything else.
>
>I'm using Access 2002 & I can't close Access when I have the File
>Open/Save dialog box open; it is modal. So how are your users closing
>Access when this dialog box is open?
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200610/1

MGFoster
Guest
 
Posts: n/a
#4: Oct 22 '06

re: API Browse Folder Dialog - hamgs if open when closing Access


rdemyan via AccessMonster.com wrote:
Quote:
I have A2003.
>
The API dialog box is called from one of my modal/popup forms. When it is
open, if I click the 'X' in the control box of my modal/popup form, my
modal/popup form closes. If I then click the 'X' in the control box for the
Access container, it tries to close Access. An hourglass appears and
everything hangs.
>
Quote:
>MGFoster wrote:
Quote:
>>I'm using code from the following web page to open the API Browse Folder
>>dialog
>[quoted text clipped - 7 lines]
Quote:
>>I'm not familiar with API coding. Is there someway to bring up this dialog
>>box modally, so that it has to be closed before the user can do anything else.
>I'm using Access 2002 & I can't close Access when I have the File
>Open/Save dialog box open; it is modal. So how are your users closing
>Access when this dialog box is open?
>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It wud seem the simple answer is not to call the File Open/Save dialog
box from a modal Access form.
--
MGFoster:::mgf00 <atearthlink <decimal-pointnet
Oakland, CA (USA)
** Respond only to this newsgroup. I DO NOT respond to emails **

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBRTvWa4echKqOuFEgEQIZpwCfX5jNWIeZdQDeHIrCS4Ygn+ UM1u0AoNaG
ollMPmAjem5fqiz0pp9t15TC
=Yr38
-----END PGP SIGNATURE-----
rdemyan via AccessMonster.com
Guest
 
Posts: n/a
#5: Oct 22 '06

re: API Browse Folder Dialog - hamgs if open when closing Access


It looks like it has more to do with a form being in popup mode.

When I set Modal to False with Popup to True, I still had the same problem.
When I set Modal to False and Popup to False, then the API dialog box is
truly modal and I can't close either the form or Access while it is open.
When I set Modal to True and Popup to False, then the API dialog box is truly
modal and I can't close either the form or Access while it is open.

I'd be curious to know if you see the same behaviour.

Thanks.

MGFoster wrote:
Quote:
Quote:
>I have A2003.
>>
>[quoted text clipped - 13 lines]
Quote:
Quote:
>>Open/Save dialog box open; it is modal. So how are your users closing
>>Access when this dialog box is open?
>
>It wud seem the simple answer is not to call the File Open/Save dialog
>box from a modal Access form.
--
Message posted via http://www.accessmonster.com

Closed Thread