Results for "Category: Files/ File Controls/ Input/ Output"
The purpose of this program is to create file associations with programs and file types on your computer. You can select from several options, but of course, the most important ones being what program to open the file with and what program to print the file with. Take a look through the code and feel free to modify it and use it in your install program or setup program to creat file types.
INIEdit v1.1 is a windows INI Editor. it loads an INI file into a visual interface, allowing you to add and delete sections, keys and values. If you like this project, please vote! I am already working on 2.0!
FolderView (updated 18-August-2002). A Vb6 constituent control (piggy-backs Treeview). Enumerates drives, folders AND optional files with user specified FileFilter property (example: *.zip;*.rar;*.ace). Great for making Explorer, WinZip, Archiver clones. Supports tiled background image (wallpaper), optional drag-drop. Uses API (sorry, no Slow DIR or FSO code here!). Expands on demand for speed. Plus signs are added when a child folder OR user-specified file is detected. Demo uses Listview (with column sorting) to show files. Zip enumeration with no 3rd party Dll needed. Check out other goodies such as CVC function to handle 64-bit NTFS file sizes, rip column header strings direct from Windows Dll's so they appear in YOUR language, get FileTypes (including those in Zip's!) direct from registry (very fast with dupe check), verbose Zip Method function conforms to PkZip 2.04g specs, extended Attribute Formatter, Size Formatter that handles bytes Kb Mb Gb Tb Pb Eb Zb Yb, and recursive FolderSize function. Tested on WinME (English) & WinXP (Portuguese). Because Dll are no longer allowed in uploads you will need to build as follows: 1. Load TvBackDll.Vbp and compile DLL.
This little tutorial shows how to change the font on controls at runtime. Easy to do in the IDE, but, to do it in code at runtime in .NET (compared to VB6) it is a bit different!
A Beginner method to check whether the file exists or not. It is simple, easy to understand and should able to run on different Window OS.
Just a simple INI module, no API calls. I made it as easy to use as possible, not really tested much but it does work better with remarks and such then the INI classes I've found on here. I've now updated it for writing INI files (or creating them!). I didn't test it but its simple enough that it probably works (ubounds always confuse me!).
Deletes Multiple Files at one time. It uses Drag and Drop to put the files into a listbox. If you have any questions about this program just email me at ourgroup@sprint.ca . I'd appreciate any feedback and please take the time to vote if you find this of any use. Thank You Very Much
Splits large files into smaller ones.
Correct Reference to Files in App.Path. For Newbies and for all who get Errors and don't know why. If you think this deserves a Vote, then do so, if not, then don't. I just wanted to explain a common error source !
Shows the - in my opinion - easiest way how to properly save and load a complete treeview structure from a plain text-file. NOTE : The code uses 2 functions - GetBefore and GetAfter - which I got from this Site, but I cannot remember the name of the author. If the person who wrote these functions incidentally gets this code, please leave your name in the comments, mentioning that these are YOUR, NOT MINE.
Have you ever needed to read a fixed length text file in Visual Basic? I have written quite a lot of applications where I will receive a fixed length text file from the mainframe. Tired of using the Left$, Right$ and Mid$ functions to parse each line for the individual elements of the line? Then read on. Oh, and thanks to Rockford Lhotka's, book on Visual Basic 6 Business Objects for giving me this idea.
Here is a useful function I created to solve a problem I was having in processing files for one of my applications. This function works better than trying to use the VB 'OPEN' command because it will always return the correct state of the file (even on a file that is being FTP'd at the time of the test.) See remarks in the FileReady function on it's use, as well as a sample at the end of this note.
Checks to see if a file exists.
A complete Hex Editor created using no API's or third party controls. WARNING- I take no responsibity for any lost information or files caused by using this source. At this time the code does not include a built in Backup function [add one if you would like] so if you accidentally damage files while using this program, well, I hope you have a backup already. Remember, It will never automatically save over your files unless someone changes my code themselves. Now that the disclaimer is out of the way... The way I have created this program, it only allows the user to save the 'current page' that they are working on. A page consists of 256 bytes on the screen at a time. I did this to save on memory usage as only a quarter of a kilobyte is loaded at a time. Because of this, and the fact that it is Event-Driven [uses no timer controls], it uses very little resources. This source includes a simple ASCII table built in [ok, with this it uses a half KB for data] that you can simply click and view even with a file open. To view the current file information, simply right click on the hex data list. This code shows how to: use binary file I/O, listbox manipulation, one and two dimentional arrays, Hex, inputbox, msgbox, ASCII and Chr functions This code is also very fast, even on my Pentium 150MHz laptop.
Want to put an .ini file INSIDE your .exe file? Yep...it's another file attachment sample. I've commented it heavily for newbies. There are only 2 subs, very short and to the point. It should help get you off the ground if you've never done this before.
This procedure finds a file and returns the full path, provided a partial path it will search all sub dirs. No looping only 1 API - this is the kind. I can't really take credit for putting an api to use, just sharing something that you might find useful.
In All the other methods I've tried, I run into a barrier(around 170K+) where loading a file suddenly becomes very slow. I've tried many methods found here and in books, and none have proven to work as well as I was looking for. After a long search I ended up spending some off-time figuring a way out myself. This is what I came up with.(speed increases from 20 seconds@170k to .4 seconds@170k)
This code will count all of the lines in a text File. This code will work on any sized file, and is quicker than using LineInput or the FSO.
Why are you waiting for ?? quick download this and become a really awesome GUI maker. This contains a list of new functions which will enable you to put 3D Windows - like buttons,windows,checkboxes,progressbars etc.. to your programs. This also contains an example to what you can really do. example: to open a 3D window with a close button , title etc you can use --- openwindow(10,10,620,460,"Title"); That's it & you will have a cool window on your screen. Not only this , you can change colors,fillpatterns etc for your things. For your benifit this also contains codes for using mouse in TC.
Lets you create A windows cabinet file (.cab) containing any file(s) of YOUR choice. Since a cabinet file is something windows uses. Once you make it, you can give it to anyone and they can open/extract it without special files. PLEASE vote and/or leave feedback/comments on what you think.