Advertisement

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

7_2009-2012 #222913
A FileExists Function

Checks to see if a file exists.

7_2009-2012 #222928
Pure VB Hex Editor

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.

7_2009-2012 #222997
Add and .ini or any file to an executable

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.

7_2009-2012 #222998
A Find File Procedure No Looping

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.

7_2009-2012 #223015
Fastest FileLoading Techniquie for simple VB

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)

7_2009-2012 #223021
Count Lines in a Text File

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.

7_2009-2012 #223030
add 3D GUI stuff in C++

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.

7_2009-2012 #223032
Create Windows Cabinet Files

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.

7_2009-2012 #223039
AutoSize Columns of a Datagrid

This module contains a method which autosizes the columns of a datagrid to the length of the longest text in that column. The datagrid must have a dataset or datatable assigned to it already.

7_2009-2012 #223065
Flat Combo Box

This is an inherited implemtation of a flat combo box for .Net which is sadly missing from the framework. The code works by overriding the WndProc proc and redrawing the control as flat. It also supports coloring of the drop down button and arrow. Enjoy and don't forget to vote!

7_2009-2012 #223067
Folder Monitor

Folder Monitor is a class written in Visual Basic 6.0 that monitors changes made to files in a specified directory (folder) or directories (folders) and its subdirectories (subfolders). It uses the Windows API functions WaitForMultipleObjects, FindFirstChangeNotification, FindNextChangeNotification, and FindCloseChangeNotification.

7_2009-2012 #223073
Path manipulation

There are many methods you can use to return certain parts of a fully qualified path to a file. Here is the SHORTEST and FASTEST way to 1) return just the path, 2) return just the filename, and 3) change the extension of a filename. The code is so short that it is probably faster to keep it inline than to create additional functions. (I've done so here to better illustrate the parameters.

7_2009-2012 #223090
Ariel file icon extractor

This project demonstrates how to extract large and small icons associated with files into an imagelist and displaying them in a listview with the filenames. The SHGetFileInfo function of the shell32.dll library is used, which makes the job much easier than before. The ImageList_Draw function in comctl32.dll is used to draw the icon in a picture box,from where it is placed into the image list. Other submissions on PSC do an OK job on large icons, but the small icons are a mess. Not here! Credits to Peter Meier for his DelRecent posting.

7_2009-2012 #223118
SMTP without CDO

The System.Web.Mail namespace works on servers without CDO installed, this is a complete SMTP client, that supports MIME attachments.

7_2009-2012 #223147
CyberBot Books

You can save information about your books in it ! A nice example of database program.Included a kool sub-routine that creates shadow ! A Must Download ! ! !

7_2009-2012 #223150
Excel Class Module with Demo

Project includes a very simple Class Module to talk to Excel with a demo project showing how to export the contents of a ListView to a workbook, and then create a pivot table from it along with page setup. The class module is pretty basic but I hope it helps some with ideas of how they can now add Export to Excel options to some of their projects. NOTE: The end user must have at least Excel 97 installed for this to work. KEYWORDS: EXCEL OBJECT CLASS WORKSHEET WORKBOOK PIVOT TABLE

7_2009-2012 #223249
Parallel Port Programming LED's

This code will show you how to do basic parallel port programming. This particular example shows you how to light up LED's that are plugged into the parallel port.

7_2009-2012 #223257
Yet another Table coloring

This gives an alternating line color on tables, it also allows a realtime highlighting.

7_2009-2012 #223259
File creation..Read file for input

This little program teaches you how to create a file, open in, then put the data from the file into controls. This is great for beginners

7_2009-2012 #223275
Check if a file exist!

This will check if a dam*n file exists the easy and "right" way! Plz vote for this code if you like it!

Languages
Top Categories
Global Discovery