Results for "Category: Files/ File Controls/ Input/ Output"
Common Dialog Template. This small project explores the use of the Show methods of the Common Dialog. Want to know if the user entered an unexpected extention? Want the dialog to return a file name that does or does not exist? I have included most of the constants and properties associated with each method; not so much to show how they are use, but as a reminder of what is there. Try different things and see what happens. The open and save methods seem to have the most options and therefore the most complexity. So have fun and see if this works with that....
BAS Module that handle several FileSystemObject methods using Windows API calls. Several new functions were added. This module will make file/folders operations a breeze.
This is a simple 'Browse for Folder' style TreeView. Loads all Logical Drives. Does not load sub directories until the user expands the parent directory so it loads quickly. Supports showing of the files and their associated icon. **Update (8/2/03) ** Looks a little more like the "Browse for folder Treeview". The root is the users desktop folder. Improved properties. Only applicable properties are accessable. ** Update (8/3/03) ** Inclcudes an Example Application simulating a browse for folder dialog. Added method to Create a new Folder. Once the new folder is created it is selected. Added a FindNode method that returns a specific node based on the nodes fullpath. Added different icons depending on the drive type. Speed improved.
I converted the original C# code for the IconMenu(http://www.vbaccelerator.com/home/index.asp) to VB.NET. The only Changes that I made to the actual code is that I added a property that allows you to select the Menu style you want, Classic Or XP Style. Everywhere I go that offers source code and it's in C# people are always asking for the VB.NET port of it, so Here's the VB.NET port of VBAccelerator's IconMenu
This Line-Numbering example will correctly show the line numbers. Unlike many other Line-Numbering examples, this allso works when the user manipulates the scrollbar and keyboard. The blue line is there so you can see the the line-numbering works correctly all the way down to pixel level. Please note the "Padding" Property of the lblNubers-label. If you change the font, you might have to fiddle with around with that Property. This example was made by porting the C# code found here: http://www.codeproject.com/cs/miscctrl/numberedTextbox.asp I did the porting and allso corrected a few bugs I found. Please vote and have a nice day!
This code is an adaptation of Darren J. Prior's code "GetMP3data" routine. I re-worked the code to include the rest of the header flags not decoded by Darren. It has also been converted into a class module for easy integration with new projects. This code reads all the header data from a MP3 file including bitrate, time length, encoding KB and sampling frequency. Building a play list generator? How about a Shell extention? You need this code :)
Calculates a unique CRC32 hash based on strings from important sections of your exe (as opposed to the entire exe, including non-critical things such as images, sound etc). This means you can protect exe's of virtually ANY size using CRC32. If you choose your sections carefully enough, the protection can be just about as good as if you had protected every byte in the file. Please vote for this if you think it's worthy of one :-)
Determines the filetype (PE Executable, GIF Image, Word Document, etc) using the file header/contents, as opposed to using the file extension. Supported types: PE Executable, INI File, AVI Movie, WAV Audio, Word document, Access database, GIF Image, MP3 audio, BMP image, TIFF image, ZIP archive, ARJ archive, RAR archive, HTML/HTA docs, JPEG image, Visual Basic files. If it can't determine the filetype, itll try and determine if the file is text or binary.
Deletes a specified directory tree.
Well I have searched PSC in search on how to make a trainer, but none of them where comented enough, to tell how to do it. So I made this so you can learn from it. It is easy basic trainer making code. But I am working on a SD3 one but it is going to be awhile before it is done. Since it has Virtualy everything changable to be changed. The Tenchi Muyo RPG is to be used when in battle.
This code can, check for duplicates in a listbox, and remove them, it can sort a listbox (although my way is very hard to explain), it can shuffle the items in a listbox, and it can remove any item with a certain designated name from anywhere in the listbox, it's pretty cool, check it out!!!
This is a proper working Fallout 2 .DAT unpacker. It will unpack any of the .DAT files in the Fallout 2 game, this is my first submission with projects, If you dont have Fallout 2 take a look at the coding anyway, enjoy.
Launch Date Faker and it will change the date (to a previous one if you want), launch an application, then change the date back to the current date. This can help delay evaluation periods for that stuborn piece of software that you haven't used for the last 2 months which says that the evaluation period is up even though has been pretty much unused. This is not a crack, it doesn't alter any files, and it isn't intended to be used in a malicious manner, but it can (and most likely will) help prolong your software evaluation period. Small, easy to understand file input/output code and date manipulation. Please rate and leave comments.
One of the most common uses of scripting is to respond to events from a form, such as typing text into a text box or checking data when the Submit button is pressed. There are two ways to reference form elements...this chapter tells you how.
Read and write textfiles with VBScript.
Allows voice activation of programs. Programs and words recognised (dictionary) are customisable. Click on "Add Word" to add a word to the dictionary. See CommandButton tooltips for help. Notes: It uses Microsoft Agent's Speech Recognition Engine 4.0 (included in installation). Need a working microphone, use preferably in a quiet room.
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.