473,480 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

API Browse Folder Dialog - hamgs if open when closing Access

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

Oct 22 '06 #1
4 2898
rdemyan wrote:
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-----
Oct 22 '06 #2
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:
>I'm using code from the following web page to open the API Browse Folder
dialog
[quoted text clipped - 7 lines]
>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

Oct 22 '06 #3
rdemyan via AccessMonster.com wrote:
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:
>>I'm using code from the following web page to open the API Browse Folder
dialog
[quoted text clipped - 7 lines]
>>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-----
Oct 22 '06 #4
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:
>I have A2003.
[quoted text clipped - 13 lines]
>>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

Oct 22 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
66767
by: strutsng | last post by:
<input type="file"> only allows the user to browse for files. How about "browse for folder" dialog? Can html/javascript do that? I couldn't find any syntax for that. If not, please advise what...
5
4212
by: DD | last post by:
I have been on VBnet and used the Browse for Folders Dialog code, i have two problems 1.Access keeps telling me that the Unload Me is an unknown. 2. What i really want is to open the dialog go...
5
2833
by: deko | last post by:
I'm using the below code to allow users to browse for and select a folder. After selecting a folder from the dialog, the full path is returned to a text box and saved. The next time the user...
5
1771
by: Eric Twietmeyer | last post by:
Hi, Does anyone know why starting with VS.NET 2002 (and same with 2003) it is no longer possible to browse to a directory that has "ept" as part of the path? It worked fine in Vc 6.x. My...
4
9695
by: marc | last post by:
Hi, I have 2 activex controls on my form that I need to open up a common dialog box and select/browse files, then populate two text fields. The first one I have working: The first activex...
3
11064
by: Highlander | last post by:
Hello all. Consider the following HTA: <HTML> <HEAD> <TITLE></TITLE></HEAD> <BODY> <SCRIPT LANGUAGE="VBScript"> Sub ButBrowse_onclick() '-- show browse window and Get file path:
4
2374
by: developing | last post by:
Hi All, I have a browse button that the user can click to select a file. The button then fetches the file path. This is all working fine except my boss wants some add functionality. I need it to...
3
5193
by: ApexData | last post by:
I am using code from the following links to establish a Browse File and Browse Folder dialog. http://www.mvps.org/access/api/api0001.htm http://www.mvps.org/access/api/api0002.htm This code...
3
3459
by: Moshiko | last post by:
Hi guys, I am writing a website and I would like to write a user control (ActiveX? DLL?) that can open the Windows Folder Browse Dialog from the client. I do have a user control (a DLL...
0
7044
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7045
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
6944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4483
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2985
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
182
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.