Results for "Category: Files/ File Controls/ Input/ Output"
This code compares 2 files (EXE, BMP or whatever) using the fastest possible way in VB, only asm is faster. its about 1MB/sec. If you have problems opening the project in VB5 just remove : Retained=0 ThreadPerObject=0 MaxNumberOfThreads=1 from the projekt1.vbp using notepad (or just create a new project and add the form and the module) greets, Tom
Have you ever wanted to click a file and open it? If your program is associated with a specified file type, or you select file(s) and drag them onto the exe icon of your app then this code is for you. It reads the parameters when the form is loaded using by getting the "Command". This code can get each file dragged or clicked on. If you just use the command statement you will get something like this "c:\george.bmp c:\ben.bmp f:\mydoc.doc". This code seperates each file and uses another sub to open it.
FileReal, CloseAllFiles, CopyFile, DeleteFile, GetAttrib, GetFileDate, GetFileExtension, GetFileSize, MakeDIR, RemoveDIR, SetHidden, SetReadOnly, SetSystem, SetNormal, Overwrite
This code will save values for TextBox, CheckBox, ListBox, ComboBox, OptionButton, and MultiLine TextBoxes with no problem. It demonstrates using the controls collection to go through all controls contained on a form and save their values. It also has an error handler that gives abort, Retry and ignore options on errors. It uses conditional compilation to help with debugging by printing values to the debug window. This behavior can be changed by changing #const debugmode to 0. The file will automatically be saved in the same directory as your application and will contain the forms name with an extenstion of .set.
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.
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.
This little example shows how to create a new picture format in a very simalar size of a 24 bit BMP picture. (And in only 118 lines of code.) But in that 118 lines of code theirs extracts like, fileexist, valid picture format etc... Please vote and take a look, also leave a comment.
Author: BEN GRAY Email: cbsg@interact.net.au 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
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
If you are writing an Image Editor or your app opens picture files you need this. Just like the big boys you can now show a preview of images right there in the CommonDialog window. Very easy to use. Add a module and a small form to your project and call with a single line of code.
This allows you to change the system date time stamp on your files. It was written just to make the files we send out to users look a little neater, all with the same date and time.
DateChanga views and modifies the date you see when you right click a file. This can be very useful in many ways, also shows how to convert SYSTEMTIME to FILETIME etc. I have tested on vb6 in winXP and it works fine. Please help me with some feedback regarding anything you like/dislike about this program. and please dont forget to vote.
As a computer programmer, you may be developing one or more projects to run on certain computers on a network environment. Once the initial installation takes place for each computer, you may have a need to change the code for a program, recompile, and create a new EXE file,and copy the EXE file to each computer needing this program update on your network. NOTE: To use this demo, you must have System Admin rights or try typing in a UNC path and access their computer remotely. (Example Shown Right) The file must be closed before you can copy it to networked computers. You could, of course, Use Start / Run / and type in the UNC path and dump the file to each computer (like illustrated above) - then copy the file over. There may even be other methods to do this, but the method I developed allows you to send the EXE file (or other file(s) if necessary), to each computer on the network (only those running your software) through its computer identification name. This program was written about 1 ½ years ago – found partial code that was missing – so I’m uploading this for you’ll. Did some simple modifications to it before uploading it to PSC. Forms are quite simple and it uses DAO (I know it’s old) but still works very well. See for yourself – then change to ADO if you wish. This YourApp.vbp and TransferApp.vbp does not require any outside OCX or DLL. You do have to reference the Microsoft Scripting Runtime. Please read the README.doc Word Document for proper preparation, setup, and execution of this demo. If you don't have MS WORD, you can download the WORD viewer from Microsoft's web site. If you like this program, please feel free to vote - please leave suggestions and/or comments. Thanks
This tutorial explains how to create executable files during runtime ! Visual Basic does NOT even have to be installed on the computer running your Application !!!! the bas file included in this project helps you to create exe files which include customized data! DURING RUNTIME! "What we do is coding an exe file that opens itself for read access during runtime." Reading the Tutorial won't last longer than 10 minutes and the method you learn can be very EFFECTIVE.
How to upgrade Standard Open / Save Dialog with new text and Picture...
Well here it is, Dirguard de Luxe, as i could not find beta-testers i could only test it on WinNT and win98Se. Now guarding multiple directory's, just ad them to the guardlist and all files within are guarded. Solved the syncronisation of different boxes in previous versions by using a FlexGrid to store the information, i never used Flex-Grid so the code might be somewhat "unusual". Now guarding for : additions, deletions, changes of date, time, attribute and size, also checks if a file can be accessed. The logfile got autoscroll and there is something done about the visualisation of the guarding, again the code might seem a bit exotic here and there. Feedback or a rating would be great, also beta-testers but hey...you can always improve it yourselfe but please inform me about your ideas. (CPU-load while checking 700 files is 19% max)
this is an easy code to get and set any file's attibutes (system, hidden, read-only,...) throught the vb function getatr and setattr
A Beginner method to check whether the file exists or not. Simple and should able to run on different Window OS.
Demonstrate the use of several contols such as RitchTextBox, ImageList , ToolBar, PictureBox,PRINTER, PRINTER PREVIEW, file atributes, file info,file size, file date, Icon Extractor, file exists, file extentio, file type, CPU monior,....some EASY API, fully comented for the hadrest parts I have grabbed some other author's code but I can't find their names back so i you recognize yourself, mail me and 'ill be enjoyed to refer
This is an update to 5.0. All the bugs are now fixed!