Results for "Category: Files/ File Controls/ Input/ Output"
Why mess around with the printer object if you don't have to? In my example, I print the contents of a richtextbox control to the printer with only a couple of lines of code. PERFECTLY formatted. Readily applies to just about any control or string, though.
A reusable function that computes the relative path of a file with respect to a given directory Examples will make the point clear, so here goes: GetRelativePath ("C:\VB\", "C:\VB\File.ext") returns "File.ext" GetRelativePath ("C:\VB\", "C:\VB\Program\File.ext") returns "Program\File.ext" GetRelativePath ("C:\VB\", "C:\File.ext") returns "..\File.ext" It is useful to insert images and hyperlinks into webpages, given the filenames of the images and the HTML file.
DOS Console class. Allowing an application to write output to a DOS console and optional log file.
Learn how to use SHFileOperation and ShellExecute to send files and folders to recycle bin, create new folders, and open files with any file extension. Also, this code demonstrates how to navigate through your hard drive.
Are you a database programmer? Did you ever have to move a bunch of data files from your desktop tp the server or back? Well he is an app that can help you move lots of files with the same .ext while looping thru the subfolders of that directory to find them and copy them to the new location in the same subfolder name they came from. I used FileSystemObject for this action. Nobody's code did any looping thru SUBFOLDERS.
FileReal, CloseAllFiles, CopyFile, DeleteFile, GetAttrib, GetFileDate, GetFileExtension, GetFileSize, MakeDIR, RemoveDIR, SetHidden, SetReadOnly, SetSystem, SetNormal, Overwrite
This is not your average hyperlink control. This is a bumped up hyperlink control that smoothly fades to your mouseover color when your mouse is paused over it, and fades smoothly back to your idlecolor when the mouse leaves the control, WITHOUT A FLICKER! There's also a property where you can have a orange carrot to the left of your caption, and on mouseover the carrot turns into a carrot with a circle. There is also another property that puts a gray, rounded rectangle around your label on mouseover. Theres also ANOTHER property that fades the old caption out and fades the new caption in when you change the control's caption. This control is extremely cool. This can replace big ugly command buttons with a small simple hyperlink control. Vote if you like it!
This is a demo program I wrote for myself in order to use a menu item without having to click on it. This allows the usage of menus in other programs without having to switch to them and using the menu. This is going to be used in the future as a part of my Autosave program, a program designed to automatically save whatever documents you are working on so that in case of a crash your work would be saved, even if you forgot to do so manually. Originally written in Visual Basic, I switched over to C++ (starting with Version 2.00), and therefore had to rewrite the entire program. In Visual Basic, I had used the SendKeys command to use the menus of other programs to activate the Save menu item. As this function is not considered a safe way of sending to different programs, as other programs can accidentally intercept the send, I needed to find a better way to do it. By directly using the menus of the other programs, this problem is overcome. This program is completely documented and commented. Please check the readme for more information.
Yet another piece of drudge code. I made these two programs when I was building addons for Quake 1. PAK allows you to view and extract files from the .PAK file (double-click to extract) and .MDL gives you some information on model files
This is an updated zip of my TIFF File info class - I fixed a bug with the IFD Count.. Changing parts of the tags is not an easy task as they move depending on the images size, I needed to set the XResolution to 200/1 and the YResolution to 100/1 - file manipulation not always an easy task. So I looked for help on PSC and found 1 entry using a C DLL to return the info - more files to distribute hohum!! Well I have made my own in using VB ONLY and have turned it into a class module for you all to use.... Please Vote if you like it - any comments or suggestions to improve on it .. I think I have put all the info that is required for the header and tag info - it is based on Revision 6.0 of the TIFF file spec dated June 3,1992.
An ActiveX Control to add zip archive functionality to your applications. * Add, extract and delete files from standard zip archives. * Get file information about the contents of the archive. * Supports 9 levels of compression * Fully event driven Contains a WinZip style application showing how to use the control. Please visit my website for more information. www.richsoftcomputing.btinternet.co.uk
Add standard ZIP compression and decompression to your Apps by simply adding this comtrol to a form. New version of Richsoft ZipIt 1b Fully updated, now sample WinZip style application is complete! * Add, extract, delete files from an archive * Fully event driven * 9 levels of compression * 8.3 format for compatablity with PKZip for DOS * Fully compatible with WinZip! * Wildcards now supported for all archive operations! For latest information please see my website: www.richsoftcomputing.btinternet.co.uk The Zip file was created using the sample application!
Richsoft Zipit Control Version 0.9 -------- ----- ------- ------- --- This ActiveX control will read a Zip file and will return information about its contents. It also returns information about the files within the archive.
PhpICalendarX is a class through which you can set a calendar to your page. I have build so many features into the same. Please mail me the comments and other queries you liked to know. And I hope it will be of good use to the planetsourcecode.com viewers.
Advanced Form Email With Remote Templates allows you to email any form it allows you to customize the email
Have you ever tried to send raw data to a printer port (LPT1 for example) using Visual Basic without using VB's printer object or an outside DLL or API? If you have then you know that it is virtually impossible because Visual Basic cannot directly access any system devices. This very simple code demonstrates how to use an undocumented feature of VB's 'OPEN' statement to allow direct access to the printer port as if it were a file. Accessing system devices as if they were a file is a method that was built into the old DOS-based versions of Basic, but until now I was unaware that this functionality still exists in Visual Basic. This method even works in Windows 2000, which is supposed to block direct port access for security purposes.
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.
This is just to show you how to append a file to an executable. Could be handy if you wanna save maybe a tag to your exe file. Have not test it with very large files but small file works perfectly.
Creating controls at runtime based on the control name (like "System.Windows.Forms.Button"), the version number of the dll containning the control, culture and the public toke key. Fully commented!
Appends a string to a specified file (or creates the file if needed). Unlike the open/print/close method, this subroutine uses Win32 API calls. This ensures that your application will be able to write to its log file correctly, even if another user has that log file open in an editor during your write attempt. This is the most practical approach to production-quality logging.