473,385 Members | 1,661 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,385 software developers and data experts.

ActiveX controls Browse for Folder Dialog

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 is set up to open up the Select File Dialog box.
The properties of the activex are as follows:
OLE Class CommonDialog
Class MSCOMDLG.COMMONDIALOG

Code:
acxDialog.ShowOpen
txtDataFileLocation.SetFocus
txtDataFileLocation.Text = acxDialog.FileName

What I can't figure out is what needs to happen for the Browse for
folder Dialog box to appear with the second activeX control named
acxSaveLoc.

I have looked all over for the method/classes and can not find it when
using an Active X control

I assume I keep the OLE Class the same and have to change
acxSaveLoc.ShowOpen to something other than ShowOpen, but I can't find
it!

Any help would be greatly appreciated!
Marc Welty

"Two Pretzals were walking the street and one was a(salted)...."

Jul 26 '06 #1
4 9680
don't bother with ActiveX controls. They're a PITA to register etc,
and you don't need it.

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

Jul 26 '06 #2
Try either BrowseFolderAPI or OpenFileAPI at mvps.org/access

Jul 26 '06 #3

pi********@hotmail.com wrote:
Try either BrowseFolderAPI or OpenFileAPI at mvps.org/access
This will work, but I would prefer not putting copyrighted code into my
application. Not that I don't want to give credit to where credit is
due, but it is set up based off of ActiveX controls, and that is what
we use. We have worked around all the problems associated with them, so
if anyone knows the code that would just open the browse for folder
dialog box described above, I would really appreciate it.

Im guessing a different OLE Class, and one method on the active x woudl
do it, just like .ShowOpen.

Thanks in advance!

Marcos

What do you call chess that is not yours? "Not"cho cheese!

Jul 27 '06 #4

pi********@hotmail.com wrote:
Try either BrowseFolderAPI or OpenFileAPI at mvps.org/access
This will work, but I would prefer not putting copyrighted code into my
application. Not that I don't want to give credit to where credit is
due, but it is set up based off of ActiveX controls, and that is what
we use. We have worked around all the problems associated with them, so
if anyone knows the code that would just open the browse for folder
dialog box described above, I would really appreciate it.

Im guessing a different OLE Class, and one method on the active x woudl
do it, just like .ShowOpen.

Thanks in advance!

Marcos

What do you call chess that is not yours? "Not"cho cheese!

Jul 27 '06 #5

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

Similar topics

12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
21
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
by: andy.g.ward | last post by:
I keep getting this when trying to create an MFC activex control in a c# windows service - anyone got any ideas what the missing module could be??? Exception thrown :...
5
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...
5
by: Dan | last post by:
I am working on a C# ASP.NET project where I need to allow the user to browse to a folder. The only way I see how to do this is use <input type=file>. But this makes the user select a file and...
2
by: lei_xu | last post by:
Can anyone point me articles/links on sthe steps to call ActiveX from VB.net? TIA lei xu lei_xu@hotmail.com
3
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:
3
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...
6
by: Kuldeep | last post by:
Framework: Visual Studio 2005 Technology: ASP.NET 2.0 Language: C#.NET 2.0 I am trying to browse folders through the following piece of code. Please let me know if there is any kind of setting...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.