Results for "Category: Files/ File Controls/ Input/ Output"
This article describes an approach to embedding and displaying PDF documents in a web page through the use of a simple ASP.NET 2.0 custom server control.
This article describes a quick and simple approach to creating a custom web control used to display multimedia files within an ASP.NET page. Whilst the article and demonstration project are focused upon the presentation of multimedia files, the basic idea is applicable to any sort of object that you may wish to embed within an ASP.NET 2.0 page.
Loads different child forms without having more than 1 instance. eg. frm1.frm can only be loaded once and cannot have multiple instances of it in the parent form. In other words, this module mimics VB6's Load command in an MDI environment.
A Function To Create Windows Shorcut .URL for hyperlinks .LNK for anything else There are many other variables that can be implemented besides just Name where it points hotkey and description
Complete Image Uploader is a PHP Program that is useful when you want to upload images only. It limits the users to upload and the verification of uploading is already in it.
After quite a long time searching for a decent replacement for the FileSystemObject - which did not require the programmer to include a bloated DLL dependency with the application, making use of a tool that, although useful is rather slow and more often than not, does not yield the desired results one intends it to achieve - I decided to create my own file handling class, for no examples online helped me perform the actions I needed. So, after many attempts and having several times recoded the class from scratch, tweaking and optimizing it for a better performance, and adding functions I haven't seen anywhere else, or at least improving on the most common ones, I think this version is good enough to be released. After all the hard work of compiling a class that is both simple yet featuring advanced functions and thoroughly commenting everything, so it is clear and easy to understand, I have decided to release what I originally intended to keep for private use, so that other people may benefit from this and are not forced to 'reinvent the wheel' every time, when it comes to file, folder and drives management. clsFileAnalyzer contains over 50 different functions for file, folder and disk handling, whereas most of them were created by myself, while a few have been heavily modified from other versions I have come accross online. I have tried to review each one carefully, but if you manage to find a bug or think you could make it faster or more reliable, please do not hesitate to contact me. You will find all my software on www.kaotix-crew.net, where many of my other open source applications have been released, so check back if you're interested. I hope you enjoy this class, - NightWolf
Use it to split & merge any file at any size (from 1Byte) that user have to type in "Per splitting file size" combo-box in this format: <number><space><Byte/KB/MB/GB> example: 12 MB; 1 Byte ; 5 GB etc. [Visual Basic 6.0] License: GNU General Public License (GPL) Author: http://sim756.googlepages.com/ Web: http://sourceforge.net/projects/filesplitter
Behaves like the standard listbox but automatically wraps long text to multiple lines. You can scroll with the scrollbar or mouse wheel ***Now supports sorting..muich better scrolling as well.
UPDATE: Fixed a few minor bugs, and added the ability to import any changes the user may have made to a file back into the vault. UPDATE: I have updated the code to implement AES encryption (John Korejwa), and Secure Document Shredder(Steppenwolfe). Fixed a major bug that I was unaware of until I did the update. All file types should be launchable now from within the program. This code demonstrates how to use alternate data streams (ADS) to store programs, files, etc, within another file. There are three projects included in the zip. One is used to View the VaultFiles, one is a blank VaultFile, and the other is used to cleanup tempfiles created when opening a file. Compile all three to the same directory. Launch either FileVaultViewer or VaultFile and the rest should be explained as you go. I have taken extra care to thoroughly comment the code so it should be understandable by coders of any experience level. (Just make sure you understand Alternate Data Streams first.) Feedback would be much appreciated. Much of the information used to create this was obtained from the site http://www.infosecwriters.com/texts.php?op=display&id=53 Also, I used Ion Alex Ionescu's project (located at http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=47299&lngWId=1) for debugging purposes.
I was writing a program that required extracting the target path from a shortcut file. All the example I found used the "WScript.Shell" to achieve this. I decided to write a function which uses the createfile and readfile apis to load the file into memory, find the target path, and extract it. In this demo, just drag-drop shortcuts to the form and a message box will popup showing the target.
This code allows you to close the process(es) that keep a file locked, by simply specifying the locked file. This is similar to what Unlocker, ForceDel, WhoLockMe and UnlockIt do. I'm not taking credit for this code, because I downloaded it myself from a Chinese site and only removed the unnecessary code and created the sample project. All credits go to the original author. Have fun with it.
Ok hopefully this works this time if it doesnt get deleted , it's a real working lock down with a nice Interface i made :),Disables Alt+Tab *WORKS*,and does a bunch more than that i wrote everything except the modules if you use them to please leave the respected authors name in it, also i tested it on Win XP Home/Pro both sp1/sp2 so you should have no problems, just remember to spot the password in the code before running it else restart your computer
SimpleXMLParser is very simple and easy to use xml parser/generator. Demo project is included. Have fun and vote if you find this code useful.
The purpose of this code is to provide an easy drop-in solution to reading and writing RIFF WAVE file formats. The clsWave class requires no external dependencies, and provides only the necessary functions for retrieving WAVE data, extended wave information, and writing WAVE files I had looked at several examples on Planet Source Code to do this, but many had flaws in them (one actually looped to find a fixed-position value in the header), were inefficient, or did not conform well to my own uses. As a result, I've spent the evening writing this class. It can read and write small wave files (~ 50K) within a millisecond or two on any modern computer. My main objective in writing this class was reusability, and I believe I have achieved that quite well. You simply open a file, retrieve the bytes directly in a byte array. To write a wave, you must only set the properties of the class and feed it a byte array (or, optionally specify the header parameters and leave the current instance's headed untouched). I have written this class to be about as efficient and quick as it can be, however if anyone notices something that can be improved (aside from the plotting - this was not the goal, only to demonstrate the class), please leave me a note. Currently only supports a static PCM format (44 byte header). Thanks to Robert's comment, I've learned there is alot more to the header than I assumed. The submission will be updated within a week or thereabouts to add support for all PCM variations - but I do not plan to handle things such as MP3 and other such formats, only PCM.
Just a PictureBox with builtin zooming capability. Note the selection of a region, which works very nicely. The code is not commented, but I think it explains itself.
Fastest duplicate file finding program on the net (as far as i know) look at the screenshot for comparisons. Features include: Limit search results, only search for specific file types, 100% accurate byte to byte duplicate finding, search multiple folders or drives, disallow certain folders you choose, options to search subdirectories or not. Please take the time to vote and comment. Updated apr 14: Code Much neater and commented, more options. Updated apr 15: Move duplicates and non duplicates, View lists, open containing folder, move single file, copy single file. still not completely tested so there might be a few bugs with the new stuff. Zero Byte error (hopefully) fixed
It's a file searcher.Type a path and the name of the file you want to search and it will investigate all folders and sub folders of the path.It's simple and fast.NO API CALLS , NO MODULES just SIMPLE CODE.
This code allows to avoid the problem of a large amount of data to display in a TreeView. Infact, using the population on demand property of this control you can choose to fill only parts of it (fill a node only when the user expands it).
This is a full example of a good range of the uses and feature in the RichTextBox
This is our case study in C#. This is a Point of Sales system. This is quite complete application that performs such operation that it is needed in Point of Sales. This program can be run C# compiler.