Advertisement

Results for "Author: kamilche"

2_2002-2004 #116804
Sparks - or how to create fireworks over a background picture.

Inspired by the 'Sparks' example entered by Itay Sagui, this demo shows how to display sparks flying out of your mouse, against a background picture, with a programmer-defined color.

2_2002-2004 #117220
Countdown Timer

Displays the number of days, hours, minutes, and seconds till a specified date. Allows you to enter multiple dates. Illustrates how to use the new ListView control in VB6, saving and retrieving from the registry, and the datediff function.

2_2002-2004 #117788
Comment Manual

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.

2_2002-2004 #118282
INCLUDE Preprocessor and Compiler

Inserts text files at desired spots in the code before compiling. Doesn't modify original source!

2_2002-2004 #118347
Code-Based Timers

Start and kill a timer using API calls only! Useful when you need timers that can't be placed on a form.

2_2002-2004 #118447
Detect if Shift Key is down

A function that returns whether or not the shift key is currently down.

2_2002-2004 #118462
QuickSort with Multiple Keys

This example performs a quicksort on multiple keys, on an array of UDT's in memory.

2_2002-2004 #118548
Asynchronous Database Processing

Asynchronous Database Processing via Active EXE - When processing thousands of requests for a multi-user real-time application, you cannot afford to wait for the relatively slow database processing to occur. Here's the scenario: You have 1000 people already online and playing your multi-user game, and 10 people in the process of logging on right now. What do you do? You could process the logons right now, searching through thousands of user records, to load up their information - but then the game would appear to 'hang' for everyone already playing, waaaay bogus. You could process only 1 person at a time, in the main processing loop - that's better, but will add unnecessary slowdown to your program. What if you could log on the person in a BACKGROUND process, which wouldn't slow down the existing users? Ooh yeah. Or better yet, hand the request off to a machine across the network, dedicated to database processing? NOW we're talking! :-) You can do this easily, using Visual Basic ActiveX EXE's. Have fun with it!

2_2002-2004 #119552
Dynamic JPG Compressor

Converts BMP to JPG 'on the fly' and lets you view the result on-screen. Source code for the DLL included.

2_2002-2004 #119653
Picture Browser

Puts up a thumbnail size picture of all the pictures in a directory. Single clicking on a thumbnail takes you to a full size preview of that picture.

2_2002-2004 #119978
Drag n Drop Files from the Desktop

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.

2_2002-2004 #120011
Load JPG, GIF, or BMP from Byte Array

Load a Picture object from an array of bytes in memory. Can load any type of picture a normal picture box can load - GIF, JPG, or BMP. Doesn't require the intermediate 'saving of the byte array as a file on the hard drive' step, or an actual picturebox, to blit.

2_2002-2004 #120366
Control Internet Explorer via SHDOCVW in VB

Control IE through VB! Use the WebBrowser control in VB, and automatically navigate to sites, click buttons, fill in text fields, and more. As an example, I've included the 'NeoPets Helper' I made for my young daughter. NeoPets is a gaming web site that lets you have virtual 'pets'. You play various NeoPets games to earn NeoPoints, so you can feed your pets. However, my daughter's NeoPets were always starving because she couldn't play their games well. :-( So, I made this program for her. Anyways! Don't look at it for the NeoPets tips, look at it for tips on how to control IE through VB! It shows you how to navigate to various sites, wait until they load, click buttons, do generic mouse clicks and drags, extract text from the web page, fill in text fields on the web page, do 'screen scraping', press keys, and more. Feel free to use this program however you wish - but DON'T give me any credit, I don't want to know what you use it for. :-D

2_2002-2004 #120420
VBCam 2000

A VB replacement for the old WebCam 2000 software, which no longer works under Windows 2000. It's a WebCam with a difference - it doesn't take the picture until a request comes in! This is good for lowering the hits on your CPU AND bandwidth, because it doesn't waste its time taking a picture and uploading it every 5 minutes like most WebCams do. It sits on port 2000, and when a request comes in, it grabs the picture via TWAIN, saves it as a JPG, and sends the picture to the person.

2_2002-2004 #120810
Record a WAV using Audio Compression

Shows how to use the Multimedia control that comes with VB, to record a WAV file using audio compression. No API's necessary!

2_2002-2004 #121132
Resize Picture to Fit Picturebox

A one-liner that resizes a picture to fit the dimensions of a picturebox. No API calls.

2_2002-2004 #121140
Simple Video Capture

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

2_2002-2004 #121152
One-liner - determine whether a string is alphanumeric

This one-line function returns whether or not a string consists of only the characters A-Z, a-z, and 0-9.

2_2002-2004 #121153
BabySmash!

A simple program that plays notes and draws multicolored squares every time a baby smashes any key. Illustrates how to play notes and entire songs with the Beep API, how to force a window to the foreground even in Windows 2000, how to draw a random colored and sized rectangle, and how to 'appear' to disable the Windows key under Windows 2000 (where SystemParametersInfo doesn't work).

2_2002-2004 #121390
SortFiles

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.

Languages
Top Categories
Global Discovery