VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

File properties information. This application displays a file's properties information. It also c

Stevan Mitrovic  (2 Submissions)   Windows API Call/Explanation   VB 6.0   Unknown Difficulty   Thu 3rd March 2005   Mon 8th February 2021

File properties information. This application displays a file's "properties" information. It also contains a really cool form resize routine

API Declarations


'================================================
'You will need the following controls in your form, one Common Dialog box (CommonDialog1),
'one Command Button (Command1) - set its caption property to "Get file properties", one
'Check Box (Check1) - set its caption property to "Show Msgbox" and place it next to the
'Command Button, one Text box (Text1) positioned below the Comand Button and chekbox,
'and finally one List box (List1) positioned below the textbox.
'
'To add the CommonDialog control, click on "Project" in the menu and select "Components..."
'from the drop down list. A Components window should be open in front of you, within the
'"control" tab find "Microsoft CommonDialog Control 6.0 (SP3)" in the list, select it and
'click on "OK". You should now see a new icon added to your components tab bar on the left.
'drag this new item onto your form. Now you will have a CommonDialog box at your disposal.
'You can place it anywhere on your form, because its invisible when you run your application.
'
'You will also have to create a class module to your project. Right click in the
'"Project - FileProperties" window in the upper right corner and select "Add" from the
'popup menu. Then select "Class module" within the sub menu. A new window should popup
'called "Add Class Module" accept the default selection by clicking "Open". You should
'now see a "Class Modules" folder added to your project with a "Class1.cls" in it. Copy
'and paste all the code marked "CLASS1 BEGIN" to "CLASS1 END" into it. It will be at the
'bottom of this source code.
'
'Same applies for the form, copy all the code marked "FORM1 BEGIN" to "FORM1 END" and
'paste it into the "Form1" module.
'
'That's it, have fun with it!

Rate File properties information. This application displays a file's properties information. It also c (1(1 Vote))
File properties information. This application displays a file's properties information. It also c.bas

File properties information. This application displays a file's properties information. It also c Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters