473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Won't open Common Dialog Box using API call

I'm trying to open the Common Dialog box to allow the user to navigate
to a folder and select a file. The users are accessing the
application on a single Citrix server, so the enviroment is the same
for everyone. This function has been in place for several months and
there haven't been any problems until about a week ago. One of my
clients is no longer able to open the common dialog box. The
application does not throw an error, but the box does not open. I've
copied a section of code below and described what is happening below
the code:

--------------
1 OpenFile.lStructSize = Len(OpenFile)
2 OpenFile.hwndOwner = strform.Hwnd
3 sFilter = "All Files (*.*)" & Chr(0) & "*.*" & Chr(0)
4 OpenFile.lpstrFilter = sFilter
5 OpenFile.nFilterIndex = 1
6 OpenFile.lpstrFile = String(257, 0)
7 OpenFile.nMaxFile = Len(OpenFile.lpstrFile) - 1
8 OpenFile.lpstrFileTitle = OpenFile.lpstrFile
9 OpenFile.nMaxFileTitle = OpenFile.nMaxFile
10 OpenFile.lpstrInitialDir = "C:\"
11 OpenFile.lpstrTitle = "Select File to Link"
12 OpenFile.flags = 0
13 lReturn = GetOpenFileName(OpenFile)
14 If lReturn <> 0 Then
15 LaunchCD = Trim(Left(OpenFile.lpstrFile, InStr(1,
OpenFile.lpstrFile, vbNullChar) - 1))
16 End If
-----------
When it reaches the line 13 the dialog box should open and the code
will be suspended until a selection is made and the box is close. If
Cancel is clicked then a 0 is returned. However, on this one person's
computer the dialog box does not open and a 0 is returned. The only
thing I can come up with is that there's something in her Citrix
profile that is causing this to occur. Any ideas?
Thanks,
Alisha
Nov 13 '05 #1
1 2588
mr*********@yahoo.com (Alisha) wrote:
However, on this one person's
computer the dialog box does not open and a 0 is returned. The only
thing I can come up with is that there's something in her Citrix
profile that is causing this to occur. Any ideas?


Just guessing. Does she have a C: drive configured within Citrix?

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #2

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

Similar topics

5
by: John Warner | last post by:
I have a wierd problem that I can't find any reference to in the knowledge base. I develop simple databases at the company where I work, and many of them are used by hundreds of employees. We all...
4
by: Mike Turco | last post by:
A2003. I haven't seen this before. You use File/New to create a new database in Access and call it DB1. Close Access, click on db1, Access opens and there's nothing there. Then I try opening the...
23
by: George | last post by:
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common...
5
by: MrNobody | last post by:
I am using the no-arg ShowDialog() method hoping that the window would not be modal to any other window like the other ShowDialog(IWin32Window) method does, but when this opens it somehow becomes...
1
by: Regardt | last post by:
Microsoft windows .Net 2003 I have a mayor problem! My property window won't open. I tried using the dynamic help to open the property window, but with out success. (The dynamic help window...
1
by: Regardt | last post by:
Microsoft windows .Net 2003 I have a mayor problem! My property window won't open. I tried using to dynamic help to open the property window, but with out success. (The dynamic help window won't...
10
by: PeterW | last post by:
I find in the last 3/4 days that I can't open web applications using VS.net 1.1 for enterprise architiect. The project I am currently working on just refuses to open and hangs. I try using IIS...
0
by: Booklady | last post by:
This problem has just suddenly happened. Music samples won't play on Amazon, files won't open on other sites without downloading. I just want to watch some things and there are several on the same...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.