Results for "Category: Miscellaneous"
Inserts text files at desired spots in the code before compiling. Doesn't modify original source!
Start and kill a timer using API calls only! Useful when you need timers that can't be placed on a form.
Displays which files were dragged from Windows Explorer (the desktop) to your form. Resolves shortcuts as well, so any shortcuts dropped on the form resolve into the actual file.
Stop the infernal blinking of the scrollbar in VB6.
A simple video capture program, in only 44 lines of code. Now includes a button to change video size, and a button to change video source. For a more complete implementation, go to Ray Mercer's site at www.shrinkwrapvb.com
There's many different ways to store data in VB. This application tests a few of them. You shouldn't blindly choose the method that has the highest numbers! You should choose a method based on the usage pattern of your data. For instance, even though the timings say 'clsDirect' is fastest, for my application, a combination of clsHash and clsList proved to work 50% faster. If you don't know which method is best, try them all - they all implement interface IContainer, and swapping out one for another is a simple one-line code change.
Rotate Windows Enhanced Metafiles inside a picture box.
This little example is my response to a brand new Visual Basic programmers request for some help in writing a simple Number Guessing Game. In it, you will find the simplest and easiest to understand code... with LOTS of comments and explanations that the beginning programmer should find very easy to understand. Ryan... this is for you... and welcome to the world of Visual Basic programming... :)
OMG!...this code does everything...u can disabel/enable Crtl+Alt+Delete, Make your program flash in the TaskBar, Load/Save Combo,List,And Textboxs, over 20 subs/function for AIM, fade text in any textbox/listbox/combobox/label, Drag a borderless form, make your form OnTop, make it NotOnTop, open a URL wiht the default browser and more....
This is Explorer-like drive/folder TreeView. No delay at startup (for the hell of read directory structure), because content of each folder is readed on "expand" event. You can also specify any path and this code automatically find the path in TreeView. Base for this code are taken from other submission on Planet-Source-Code. Thanks to all programmers for publish their codes on this excellent server.
These graphical example generates 1 to 4 explosions on the screen. Each explosion has 1 to 64 pieces. Each piece has 1 to 9 pixels. Every piece has its own direction (clockwise or not), and has its own rotating frequency. ALL THE PIECES ROTATING! NO API FUNCTION CALLS, JUST the PSET!!! It is a really first project of my own with VB5. Enjoy.
NOW IT'S POSSIBLE ON VB! This code INPUTS MIDI DATA, and echo it to a selected midiOut device. Nothing more. If you are not interested in MIDI PROGRAMMING, my advise to you is that, do not waste your time with this. This was hard. BECAUSE: There is a callback function, which Windows calls many times during the recording. You can't find it on a documentation, as I could not. But now, here it is. I created it by looking to C related documents, and by using the 'AddressOf! operator of VB. I don't understand why it is not running from VB, (It crashes) run the .exe, or please compile it first, if you do not trust my .exe file. Oxokl.
The code prints a flex grid control. It supports multi page printing, by using specified number of header and footer rows by the programmer. The header and footer rows will be printed on each page, and it also has an impressive PREVIEW window which user can see the exact result of print before printing..
Play WAV files using VB ~ awesome ~ Add sound to your projects! by: EM Dixson http://developer.ecorp.net HUNDREDS of FREE Visual Basic Source Code Samples, Snippets, Projects and MORE!
Pauses an operation while allowing other operations to run. This pause is date and time based. The sleep function freezes your computer. The timer function and timer controls stop at midnight because they return to a 0 value. The perfect pause continues where these stop. It's highly configurable.
Places images in the menu
Checks version, date & time information. Recurse subdirectories and filer file types. Great for debugging file version problems.
This is a simple little app to show you how to get the current time (GMT) from the Internet and automatically set your PC clock.
This article explains, with source, how to build a C++ DLL that exports functions that can be called from Visual Basic and other "C" DLL compatable programs.
A really cool code that will first - make the form expand down, then second - it will expand out sideways! No need to customize it to the size you want, it does that automatically. Just pop it in your code. Really easy - good beginner's code!