Results for "Category: Files/ File Controls/ Input/ Output"
This is fairly simple code and its well documented. When this program is run it just continually generates a random name and makes a file in the c:\windows dir. There is a part where you can add more lines to make the file output is even larger. So check it out. BTW don't test on yourself, I did. IT created over 1600 files in 3seconds
Ever wanted to extract a filename only from a path including the filename, well this simple function will do it for you! (I know its not ground breaking but its simple easy and useful)
This is not complete! it only saves in weird way. I am mostly submiting this to get feedback. I want to know if anyone has a better way to make the file it saves smaller and if anyone has a way to open it ;)
This is a file chat program that lets users chat to each other without the aid of ip addresses and winsock controls, all it needs is the location to a shared area on your network where the room files will be created then every one else enters that address in there program and then you are able to chat to each other. This program also contains static rooms that you can go to so you dont have to stay in the same room all the time. Also by the press of a button it changes into a replica of notepad in case any one comes along that might not like you chatting.It worked in my school...lol!! PLEASE TELL ME WHAT YOU THINK.
Displays a list of all the drives and folder s in a tree view control just like Explorer. Please note: I did not write this code, it has just been compiled into a usercontrol so it is easier to use. Thanks to Marek Letosnik for the base to this code. You can customise this code easily to get it looking how you want it. I have changed some stuff to make it look better as well.
Delete a folder, with all it's subdirectories.
It protects files and folders from users.
Two pre made forms (Tab Strip and a dir select) ready to put into your apps from the VB project window. Form1 = 31 lines of code giving you a 6 window Tab form to start working with. Form2 = 13 lines of code giving complete access to you file system with minimum code. Just unZip to your forms file which by default would be somthing like "C:\Program Files\Microsoft Visual Studio\VB98\Template\Forms" then launch VB and add a form you will find them their. Saves me ages, I do have other forms but will only add them if people vote for these. JP keep on coding.
I have seen all of these really complex GetKeyAscii functions out there. Well check this out.
Round to X Decimal places with one line of code!
Is a simple notepad like text editors with a few extra features...
I have some problems when sending eMail with a large file size as attachment. First, some mail server set a quota for that eMail. The second problem is coming when the recipient download the attachment. It takes long time to download, or when connection broken (because of time), he/she must re-download it, again and again. I imagine why we don’t create a program to cut the large file into peaces, and then send it one by one via eMail. After that you combine all of the attachments and become the original one.
This code is based upon the ONLY other VB uuencode/uudecode source code available (it's here). I put this together as part of a larger project that I'm in the middle of (a USENET binary downloader) and I wanted a uudecode routine that would decode on-the-fly. This does. It also encodes and decodes files, like a normal encoder/decoder. I spent a lot of time optimizing it, and I think it'll now decode fast enough to handle most DSL/Cable accounts on the fly (480-590 kb/s). Error checking is sparse, hopefully there's no glaring bugs. Hope it's helpful, and let me know if there's any more optimizations that you can find! [Update] I fixed the problems described below, and also replaced the static filenumbers with dynamically generated ones. Doh! [Update] Another bug found and fixed. There were null characters at the end of each line of files encoded with UUEncodeFile. They're gone now...
This is a .net class library (KeyboardLowLevelHook) to capture low-level keyboard events by placing a low-level system hook. Use this to track when a user presses some key / key combinations (in any program) and react to those events. The way these functionalities are exposed is very similar to the .net keyboard input scheme : the KeyboardLowLevelHook provides two events : KeyDown and KeyUp (same as on Windows Forms) that, upon instantiation of the class, fires whenever any key gets pressed / released. You can also prevent (block) key combinations from reaching other programs by setting e.Handled = True in the KeyDown and KeyUp events (see example). Note : Be careful when a KeyboardLowLevelHook is instantiated when debugging : keyboard input will react very slowly since the “hook callback procedure” cannot be called when the program is paused. Low-level keyboard hooks require at least Windows NT 4.0 SP3 to run. *Vote only if you wish to... Voting is voluntary : users should not be forced to vote. If you don't want to vote, that's OK! Simply don't vote!*
Ever wanted to scan a picture and save it to the Hard Drive? Well Now You Can. With a Few Lines of Code you're ready to capture a picture from a webcam or scan something from a flatbed. This may only be compatible with certain brands of scanners and webcams but should work with most. The only thing not coded by me in this sample is the control which is included. I think it was built by kodak. Anyhows enjoy. Be sure to Extract the .OCX to your Windows\System directory or most likely this will not work.
This program controls a remote unit across a range. The OFF button sends a "FF" and expects an "FF" within 1/3 of a second otherwise it times out. The reason I uploaded this is because I could not find a serial program that worked using MSCOMM and ONCOM event. I did have trouble at first until I read that Microsoft has Rthreshold default as '0'-- it needs to be '1' for the received data event to be captured I realise this is a very simple program, but it WORKS. To check this out place a wire/short between pins 2 and 3 on your DB9 serial port. This will route TX to RX on the same port. I limited it to COM1 and Com2 but others can be added. I hope this helps someone trying to use the serial port.
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
Lists all of the files in a directory matching the pattern entered in the form.
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.
Alot of people want there programs to be more popular, this is the way, if you have the only program that will save to a particular format, then everyone will HAVE to use your program to open there files. And it will HAVE to become FAMOUS!!! Plus it's really cool to have your own Extention. My programs shows you alot of stuff: 1)How to make your own Extention 2)A simple way of formfades 3)How to save useing Common Dialogs Filters 4)How to copy a picture to your Clipboard 5)Comes with detailed Instructions It's simple for any begginer or intermediate!!!