|
|||
| Printers and Fonts Folders in Visual Basic 4.0 Include the Printers of Fonts folders in Win95 for your application; use the following syntax for Printers: x = Shell("C:\windows\rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder", 1) For Fonts: x = Shell("C:\windows\rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL FontsFolder", 1) The Recycle Bin inVisual Basic The Recycle Bin is great for stopping files for permanently being deleted off your hard disk. To use this inside your VB code, create a new form and paste the code below into the General Declarations section of the form. To delete a file, just call the DeleteFileToRecycleBin procedure with the filename as a parameter, e.g. Call DeleteFileToRecycleBin("C:\temp\filetodelete.tmp") Private Type SHFILEOPSTRUCT hwnd As Long End Type Private Declare Function SHFileOperation Lib "shell32.dll" Alias _ Private Const FO_DELETE = &H3 With op Ret = SHFileOperation(op) End Sub |
|||
| National Book eXchange
The Online College Book
Exchange
Exchange your college textbooks with students from
across the country and around the world. Post your current books, old edition books,
classroom materials, and optional study guides for any college course.
Determine the price you want or negotiate
through email with interested students
www.angelfire.com/biz/nationalbx |