Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996



Application Security Testing: An Integral Part of DevOps

Creating Win95 Explorer-like Dialogs

Are there common dialogs in Win95 like file open/save? I wish to put in my apps the ability to use long filenames which Win95 supports.

Here is the code to give you a Win95 open dialog. The Flags property is the critical one...you have to include two particular flags to get the dialog to be the Windows 95 one. The nice thing about VB4 is that you can open any filename with the Open command, including long filenames. For more information on the Common Dialog, see the VB4 help file.

   CommonDialog.Flags = cdlOFNLongNames + cdlOFNExplorer
   CommonDialog.DialogTitle = "Select Output File"
   CommonDialog.Filter = "All Files(*.*)|*.*|HTML Files (*.htm;*.html)|*.htm;*.html"
   CommonDialog.FilterIndex = 2
   CommonDialog.CancelError = True
DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date