Advertisement

Results for "Category: Files/ File Controls/ Input/ Output"

2002ASP #2049
Beginners Toolbox

Threw this together to answer a group of questions in the Discussion forum. It is intended to help those just starting VB. It demostrates string manipulation, file handling, simple navigation, reading and writing to files. It includes four example apps that include menus, window handling, file properties and a basic text editor. Code for each function appear in a textbox ready to copy into your project. I hope this is of some help to people beginning VB. Good luck.

2002ASP #2066
Using CommonDialog (Open, Save, Print, Font, Color)

learn how to use the Common Dialog Control the right way!!! please vote or at least comment!!

2002ASP #2076
Allow Only NUMBERS in a textbox! simple

allows only numbers to be entered into a textbox!!! very useful!!

2002ASP #2099
File Recursion

Demonstrates the use of recursion to retreive the files in a folder. Code is in two mudules...one demonstrates the Windows API's to open a browse folder dialog box to select a folder, the other contains the code to list all of the files in the directory selected, including files in all subfolders. Code is well documented.

2002ASP #2104
Execute all files

Normal users use the Shell command, but that command can't execute all kind of files, but this can

2002ASP #2110
Get file attributes

This shows how to get the files attributes or set the attribute for the file

2002ASP #2130
PAK Control

With this code, you can merge multiples files (any file) in a one single file! It's fast and easy to understand.

2002ASP #2139
Compressed File Viewer

Stripped code from Dana Seaman's FolderView project. I stripped the project so that the result was only the code that enumerated compressed files. With this code you can view the contents of compressed files (zip, cab, rar, and ace). Note that this code does not compress or uncompress files, it simply enumerates the contents of the compressed files. Also works with shared files over a network. Dana 's original code is at: http://www.planet-source-code.com/xq/ASP/txtCodeId.23292/lngWId.1/qx/vb/scripts/ShowCode.htm All of the code here is Dana's except for the minor stuff like the "Dump to Text File" subroutine and the browsing function. You will notice that there are alot of variables that have been commented out. Those are just the byproducts of the original and bigger project. They were not needed for the compressed file enumeration but i left them in the code. I want to personally thank Dana for such good work.

2002ASP #2141
Copy files in directory - Extremely simple!!

With this code you can copy all files within a directory with a particular extension to another directory. Actually it will give you a progressive listing of a file with a wildcard and then you can do whatever you want with the file. Extremely simple and straightforward. I dont understand why the other codes are so huge. If you find an error or if you would like to comment please leave a messge.

2002ASP #2175
all Ini Functions activeX.dll

Performs all ini file functions from within a single dll file.

2002ASP #2179
Dummy Files Creator

This is fairly simple code and its well documented. When this program is run it just continually generates a random name and makes a file in the c:\windows dir. There is a part where you can add more lines to make the file output is even larger. So check it out. BTW don't test on yourself, I did. IT created over 1600 files in 3seconds

2002ASP #2183
Filename only from a path

Ever wanted to extract a filename only from a path including the filename, well this simple function will do it for you! (I know its not ground breaking but its simple easy and useful)

2002ASP #2192
Custom picture file

This is not complete! it only saves in weird way. I am mostly submiting this to get feedback. I want to know if anyone has a better way to make the file it saves smaller and if anyone has a way to open it ;)

2002ASP #2204
Stealth-Chat a File Chat program

This is a file chat program that lets users chat to each other without the aid of ip addresses and winsock controls, all it needs is the location to a shared area on your network where the room files will be created then every one else enters that address in there program and then you are able to chat to each other. This program also contains static rooms that you can go to so you dont have to stay in the same room all the time. Also by the press of a button it changes into a replica of notepad in case any one comes along that might not like you chatting.It worked in my school...lol!! PLEASE TELL ME WHAT YOU THINK.

2002ASP #2232
Deleting Directory with all the Subdirectories

Delete a folder, with all it's subdirectories.

2002ASP #2236
Protect files and folders

It protects files and folders from users.

2002ASP #2250
V. Simple GetKeyAscii code

I have seen all of these really complex GetKeyAscii functions out there. Well check this out.

2002ASP #2287
Cirus Pad

Is a simple notepad like text editors with a few extra features...

2002ASP #2297
UUDecode Class

This code is based upon the ONLY other VB uuencode/uudecode source code available (it's here). I put this together as part of a larger project that I'm in the middle of (a USENET binary downloader) and I wanted a uudecode routine that would decode on-the-fly. This does. It also encodes and decodes files, like a normal encoder/decoder. I spent a lot of time optimizing it, and I think it'll now decode fast enough to handle most DSL/Cable accounts on the fly (480-590 kb/s). Error checking is sparse, hopefully there's no glaring bugs. Hope it's helpful, and let me know if there's any more optimizations that you can find! [Update] I fixed the problems described below, and also replaced the static filenumbers with dynamically generated ones. Doh! [Update] Another bug found and fixed. There were null characters at the end of each line of files encoded with UUEncodeFile. They're gone now...

2002ASP #2414
Scanning / Capturing Pictures w/ Scanner or WebCam

Ever wanted to scan a picture and save it to the Hard Drive? Well Now You Can. With a Few Lines of Code you're ready to capture a picture from a webcam or scan something from a flatbed. This may only be compatible with certain brands of scanners and webcams but should work with most. The only thing not coded by me in this sample is the control which is included. I think it was built by kodak. Anyhows enjoy. Be sure to Extract the .OCX to your Windows\System directory or most likely this will not work.

Languages
Top Categories
Global Discovery