Results for "Category: Miscellaneous"
This module contain function that are used to convert between decimal, binary and hexadecimal.
Well, you wanna know how to do almost everything in Agent? Well download this, have a read, and you will! This example project I've written shows you how to run through set scripts, use multiple characters, accept speech input, use speech output, use sound files for Agent speech, use Liguistically Enhanced files, hehe or get them to fight! It also gets around the 'Variable with Block Variable not Set' error, have a look!
UPDATED- I added comments to the code. This program uses the sysinfo control to monitor battery use on a laptop. The screenshot say more than I can type here. I would ask that if anyone knows how to show the info for 2 batteries, I would appreciate an email with how... Thanks
This code is to show how to create an email in lotus notes with an attached file
Prints out a 'table of contents' for your Visual Basic program, which contains method names, syntax, and comments only. Useful as 'cover sheets' for the actual code printout.
A function that returns whether or not the shift key is currently down.
Start and kill a timer using API calls only! Useful when you need timers that can't be placed on a form.
Given a pathname, the class in this program returns a sorted list of directories or filenames in a string array, without the use of the drivelistbox, dirlistbox, or filelistbox controls. This program illustrates several important programming concepts, including quicksort, passing arrays to and from procedures, and handling undimensioned arrays. In addition, it's very easy to use.
The book "Tricks of the Game Programming Gurus" by Andre LaMothe, copyright 1994, has an interesting chapter on artifical intelligence. However, all the samples in the chapter are done up in C. I've redone them into VB just for the heck of it. There are 5 simple programs illustrating chasing, evasion, patterned movement, random movement, and a program that combines all of the above.
Given a pathname, this function will return a string containing a list of all files in that folder plus subfolders. Much easier than other examples posted here! A single recursive function, with no API's or special types needed.
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
Send E-mail without borrowing another programs interface...... Even send it in the background with one line of code.
This class module, complete with demo project, will allow you to easily scroll a large picture box inside a much smaller one. This can be extremely useful when space is something you have little of.
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.
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..
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.