Results for "Category: Files/ File Controls/ Input/ Output"
GUYS I THINK THIS CODE REALLY NEED YOUR VOTES ... COS SEVERAL PEOPLE ASKING ABOUT THE POLYGAMY PATCH AND LIKED TO KNOW THE SOURCE SO AFTER 1 NON STOP WEEK, I DEDICATE THIS CODE TO ALL OF YOU !
This class sends text, files, control codes directly to the printer spooler bypassing the print driver. This lets you send print files to the printer or control the printer by sending the appropriate control codes. The name of the print job can also be set. Works with any windows printer, not just LPT1: printers. See comments in the class for usage.
Completely destroy a file with no chance of recovery or trace. Use of CreateFile, FILE_FLAG_NO_BUFFERING (Open the file with no intermediate buffering or caching) FILE_FLAG_WRITE_THROUGH (Write through any intermediate cache and go directly to disk) and also FlushFileBuffers function to ensure that file buffers will be flushed! A must test and see.
This code enhances input validation in real time instead of waiting for the user to press a button(Ok or Submit or whatever...). With this code you can limit the user input to whatever type you want(Whole Number, Fractional Number, Uppercase...).This also provides a way to optionally notify a user when an input error is being made while typing or pasting. Besides that, other features that are not available in VBs wrapper are exposed to developers. Discover for yourselves through your object browser. This class can also be attached to controls that have an Edit box constituent(like Comboboxes and Grids). Please vote for this code if you find it useful. And please comment.
Project includes a very simple Class Module to talk to Excel with a demo project showing how to export the contents of a ListView to a workbook, and then create a pivot table from it along with page setup. The class module is pretty basic but I hope it helps some with ideas of how they can now add Export to Excel options to some of their projects. NOTE: The end user must have at least Excel 97 installed for this to work. KEYWORDS: EXCEL OBJECT CLASS WORKSHEET WORKBOOK PIVOT TABLE
let the program delete itself ;)
Allows you to adress and write an MS Access report directly into an email message. (saves attaching pesky rtf files making it easier for the reader. The code attached is what we use on a weekly basis and can be used as a template with your tables/queries
Shows how to add items to a listview and then save those items to either an INI file or to Registry. Once saved you can then load the data back into the listview.
This simple code demonstrates how to load a list of files into a standard list box, and then display the contents of a file when it is selected from the list.
With this code, you can compile into EXE files any VB project.
This project demonstrates how to extract large and small icons associated with files into an imagelist and displaying them in a listview with the filenames. The SHGetFileInfo function of the shell32.dll library is used, which makes the job much easier than before. The ImageList_Draw function in comctl32.dll is used to draw the icon in a picture box,from where it is placed into the image list. Other submissions on PSC do an OK job on large icons, but the small icons are a mess. Not here! Credits to Peter Meier for his DelRecent posting.
This program was designed to balance my checkbook because I am too lazy to right down where I wrote my checks and stuff. You could also use it to keep track of a savings account or something. Even if you don't have a checkbook you could learn from some of the api in it or learn how to use the common dialog control. (saving loading files, especially list boxes which everyone seems to want to know how to do) It also comes with a cool alarm clock that plays a wav when timer goes off.
This module simplifies file handling. Please download the latest version! This version is obsolete! Click on Other Submissions by this Author to find the latest version!
Simple code to zip/unzip with Winzip
This Code uses the Microsoft XML Parser to Read an XML Source and Put it into a treeview. Ut Can Accept A path to An XML File EX:"C:\MYxml.XML" A string EX:"''" or a URL to an XML File Ex:"Http://www.MySite.Com/Myxml.XML"
Example of File System Object implementation...
These are two functions I wrote to save and load a treeview's nodes (saves the .text, .tag, and .key properties) to and from a text file. This is a very simple code and should be very easy to incorporate to any project.
have u ever download source that was created in vb6 and u still have vb5 cuz u dont wanna shell out $$$? now u dont need to, this program makes vb6 files compatible with both vb6 and vb5!!!!!! this is also a great OLE and Hex Editing example and a great utility whether or not u use the code!
Copy a file in binary mode. You can easily implement a prograssbar with the value of the variable "iPercent". Change the buffer size for various use: SMAPLE: 10240 for normal mode; 2048 for network; ...
this codes compresses any files of your choice to a designated target folder using Winzipr..