By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,097 Members | 1,405 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,097 IT Pros & Developers. It's quick & easy.

Selecting a file in VB6

P: 21
Hi All
I have a problem with VB6 in that I need to modify a progam written by someone else for me who I used to work with,
The program uses a database in access and to change to a different year another copy of the program must be sent out and installed and I am looking for a way for one copy of the program to be installed and on running the program it asks for the database file (which could be the latest version or indeed a previous year) and gives the opportunity to search on the hard drive for it ( in VB.Net I think it would be 'OpenFileDialog' ) but I can't seem to find this in VB6, it may be there just hidden from view or may be called something else in the older version.
Any ideas would be much appreciated

Thanks Rob
Mar 21 '07 #1
Share this Question
Share on Google+
4 Replies


vijaydiwakar
100+
P: 579
Hi All
I have a problem with VB6 in that I need to modify a progam written by someone else for me who I used to work with,
The program uses a database in access and to change to a different year another copy of the program must be sent out and installed and I am looking for a way for one copy of the program to be installed and on running the program it asks for the database file (which could be the latest version or indeed a previous year) and gives the opportunity to search on the hard drive for it ( in VB.Net I think it would be 'OpenFileDialog' ) but I can't seem to find this in VB6, it may be there just hidden from view or may be called something else in the older version.
Any ideas would be much appreciated

Thanks Rob
go for Comman Dialog box in vb
Mar 21 '07 #2

100+
P: 149
Hi All
I have a problem with VB6 in that I need to modify a progam written by someone else for me who I used to work with,
The program uses a database in access and to change to a different year another copy of the program must be sent out and installed and I am looking for a way for one copy of the program to be installed and on running the program it asks for the database file (which could be the latest version or indeed a previous year) and gives the opportunity to search on the hard drive for it ( in VB.Net I think it would be 'OpenFileDialog' ) but I can't seem to find this in VB6, it may be there just hidden from view or may be called something else in the older version.
Any ideas would be much appreciated

Thanks Rob

Yes you can use a common dialog box to implement this functionality.

thanks
ansuman
Mar 21 '07 #3

P: 21
Thanks for that, I see how it works.
Now all I have to do is get the result from the common dialog to be read by the program
Mar 21 '07 #4

debasisdas
Expert 5K+
P: 8,127
simply use Common Dialog Control for this functonality.
Can also use this for color and font also
Mar 22 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.