Advertisement

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

5_2007-2008 #179671
HyperFast! Read/Write File Functions

These two functions are designed to read and write a file as fast as possible in VB. It is faster for some cases than WinApi Read/WriteFile functions because you don't have to convert binary to string in a loop. Thats why, it is very fast and useful for any purpose. I have created it for my Encryption programme and with Windows Crypto functions and this two functions, my encrytion programme works faster than most of the Encrytion software you can download on the net. Hope it will be useful for you. Thanks. Ozan Yasin Dogan www.uni-group.org (will be online in 01/06/02)

5_2007-2008 #179673
HYPER FAST READ FILE #2

This File reading tests compare 3 methodes of reading file. One is using Api, second is using random access file methode and third is using binary file methode. I have tested all and found that using Api is the best and fastest solution for reading files. I have included 3 classes for these 3 methodes and a template project to test them. In my tests, i have used a PIII450mhz, 195MBRam with WinXP Pro. I have read a 20mb file in 1.8seconds.

5_2007-2008 #179694
File Comparer

The program asks for two (or more) files and goes through them sequentially, searching for either differences or similarities, depending on what the user selects. Results are placed into a listbox in either decimal or hex. Useful for figuring out the sturcture of certain files (ie how a small edit changes the file) especially character files for rpg games.

5_2007-2008 #179727
Search Drive

Search Drive for files with a few lines o'code, Recursivly- Please VOTE!!!!

5_2007-2008 #179731
A Dll Project That Reads XML Into a Treeview

This Code uses the Microsoft XML Parser to Read an XML Source and Put it into a treeview. Ut Can Accept A path to An XML File EX:"C:\MYxml.XML" A string EX:"''" or a URL to an XML File Ex:"Http://www.MySite.Com/Myxml.XML"

5_2007-2008 #179772
Patch Extractor - Binary Compare Two Files

Binary compare two files and save the differences to file. you need to 2 files with equal length, one original and one patched. please register syntools.dll in your windows system with regsvr32.exe. syntools.dll provides standard common dialog functions like file dialogs for open and save, color picker window, file exists function and more... you can download syntools.dll source right here at your mother of source codes. just follow the url below: http://www.planet-source-code.com/xq/ASP/txtCodeId.21368/lngWId.1/qx/vb/scripts/ShowCode.htm feel free to email me if you have any questions or suggestions. mailto: [email protected]

5_2007-2008 #179775
Open File With Default Editor or Program

This 1 line of code will Open any file with their correct default program. EX: opens .Doc file with winword and .Zip file with WinZip..Or any file with their default program..

5_2007-2008 #179776
Auto Delete Self Program

This Code will delete the Program Right After it close..

5_2007-2008 #179839
Change Icon in compiled EXE

This will mod PE headers of compiled EXEs to change their icons.

5_2007-2008 #179840
Get System Directory -- 1 Line of Code No API

Get the system directory with 1 line of code and no API.

5_2007-2008 #179889
pjl_setmessage

A small module to set the status message on PJL printers (HP's etc).

5_2007-2008 #179931
LoadRes

VOTE FOR ME PLEASE! SIMPLE CODE to use with resource files. With one line of code, you will load text strings and images from a resource file WITH NO API CALLS.

5_2007-2008 #179932
DHTML Tab Control Simulation

This simulates a tab control in pure DHTML, using cascading stylesheets and VBScript to do the job. Mind you the VBScript code can easily be changed to JavaScript. With this, you can develop your own web application without haveing to use an Active-X control.

5_2007-2008 #179933
SysTrayIcon

In .NET the notifyicon control simplifies the task of putting an icon in the system tray and creating a popup menu by using the contextmenu control. But when I tried to minimize a screen to the system tray and remove it from the taskbar, I realized that when the time came to show it again, the form would not show up. It would be invisible on my desktop. So instead of removing the icon from the taskbar I tried hiding the form and this worked very well. I am posting the code here for others who may find a very simple way of using the NotifyIcon Control. The code is very simple and clean. If you like it, vote for me. thanks!

5_2007-2008 #179942
Rich Text Box / Common Dialog Box Tutorial

Author: BEN GRAY Email: [email protected] This tutorial demonstrates how to use Rich Text Box control, and mostly, how to use the Common Dialog control. It covers all concepts of the common dialog control, including flags. Now you can turn off that annoying "Open as read only" check box. It is commented heaps on every line. Special Thanx to: Ian Ippolito, Webmaster Planet Source Code www.planet-source-code.com

5_2007-2008 #179947
Alternative FileCopy - Use to copy opened access databases or to copy a file and make a prog. bar

I made this code because I need to copy an access database with the file open (in use). But, visual basic FileCopy method and windows apis for this pourpose fails in this case with the "File Access Error". So, I made this function that copy the file in blocks. You can alter the block size so the copy can be faster or slower. Well, thats it. I hope that this code can be useful to anyone! Ah, the error handle was generated with Ax-Tools CodeSmart 2001, an excelent Add-In for any visual basic programmer! Recommended! :) www.axtools.com

5_2007-2008 #179992
PrinterSupport

The PrinterSupport.dll was created in order to simplify printing documents. Included features are; 1. Paragraphs 2. Rectangles 3. Circles 4. Pictures (picture object reference) 5. format text (i.e. bold, size, etc) 6. Justification (full, left, right and centre) The printing is done using millimeters so that replicating documents for programs is relatively straight forward. The non-printable area of the printer is also taken care of. Note: The printer orientation is not modified at all but can easily be added if need be. There is also no current method of selecting a printer which can also be added to the dll if required.

5_2007-2008 #179993
How do I prevent a form from being submitted, until all required fields are correct ?

How do I prevent a form from being submitted, until all required fields are correct ? Only one field is used in the example. Every time the user clicks the OK button, the onClick event fires. If it passes the test the form will submit, else the focus will be placed on the textbox, an alert will appear and the submit button will be disabled, which stops the submit process. The onMouseMove event is used to enable the button again. I just added the error handling code in case an error comes up. It is actually not necessary, you can just enable the button again. I use the onControlSelect event on the submit button, because sometimes after being disabled, the button looks like it is embedded in the page. The above event fixes it. The above can be applied to multiple textboxes, and multiple conditions and arguments can be used. It saves time and space as the validation is done on the current page, before the form is submitted. Otherwise the user has to go through the laborious task of clicking the back button on the posting page to be redirected to the previous page, and fix a simple mistake. I've had comments that the JavaScript return false statement is a better solution. Unfortunately the return false; statement doesn't seem to work when you are using frames. I hope you find this usefull !.

5_2007-2008 #180024
Hierarchical Data Grid in ASP

This sample is to show Hierarchical Data not using .NET or third party components. Include sample North Wind database that comes with Microsoft Access. Nice Interface with VBScript functions and Cascading Style Sheets to enhance presentation. The sample shows how to use ADO Data Shaping and SQL syntax. You can change the SQL string to suit your needs.

5_2007-2008 #180045
A Simple notepad with options such as character limitation, new, open and save!

This demonstrates some use of the common dialog and richttext box control. It is simple and i thoguht it wouldnt require comments. Enjoy!

Languages
Top Categories
Global Discovery