Results for "Category: Miscellaneous"
Adding A sound to your forms to spice them up a little!d
*FIXED* Ever wanted a form to stay next to another while you moved it or on load? This example shows how to do it in a few simple lines of code! Anyone can use this code it's so simple. Try it for your self!
This Full Example Show how to control winamp. It also includes a Full Winamp Forntend .mod file which include all the function to control winamp. I create this because i was making a Mp3 Player for the car and i need a winamp control and LCD Display to display songs.. and have cool function with the program Have fun with it.
Animated Sort Algorithms --- Shows the behavior of these sorts: *Bubble*, *Cocktail Shaker*, *Insert*, *Improved Insert*, *Shell*, *Heap*, and three versions of *Quick". Download is 7.5 kB. Have fun...
This little application runs in the system tray and shuts down Windows and switches of your PC after an adjustable period of user idleness, ie no mouse or keyboard activity. Running processes are queried as to whether they have any objections to system shutdown and are forcibly terminated if they don't object or do not respond to the session end notifications.
This little utility lists most of the components of your computer, together with their properties. In fact it tells you everything Windows knows about your hardware and associated drivers. Tested with WinXP only. Download is 11 kB.
This is the result of playing with Unicode a little and it is by no means perfect, but as a beginning it may be helpful to some of you. Download is 2 kB. ~~ PS:- I speak none of the languages; I just picked some characters that looked typical too me.
Thanks and Good Bye
This was inspired by an earlier submission to PSC (whis seems to have disappeared when I looked for it again to give credit to the original author) and it will dim your monitor after a period of idleness or when you expicitely want it. It runs in the system tray and requires no measurable resources. ***Updated for smooth transition and TimeoutDisable. Try it, download is only 8.5 kB.
This demo application demonstrates the use of a Custom Tooltip Class supporting square and ballon style tooltips, centered at the corresponding control or at the mouse pointer hot spot, with or without title. Individual back- and forecolors are also possible as well as an assortment of Icons to be displayed in the tooltip and finally individual delay- and show-times. The code is easy to follow and well documented. And on top of that the class is very easy to use. Check it out, download is only 6.4 kB. (Sorry the screenshot didn't come out very well)
The proper way to find out whether your code is running in the IDE or was compiled
Make a standard command button very flat ;-)
This is a normal Message Box, but with a timer which will make it disappear after a certain amount of time. The return value depends on whether the user clicked one of the buttons (when the normal MsgBox return values are handed back) or whether the box was closed automatically - in this case a zero is returned.
This little code snippet returns a truly random sequence of Rnd's
Very fast integer sorter. Using 1800 MHz Athlon processor will sort ten million integers in just over three seconds. (see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=59491&lngWId=1)
Bouncing elastic text effect
This article shows the basic concepts of Generic Algorithms. Generic Algorithms (GA) are used to arrive at an optimal solution for problems which cannot be solved by mathmatical rules or formulae. A GA simulates the natural evolution process by selecting and breeding the fittest individuals. According to Darwin's Evolution Theory the "fittest" are those which are best adapted to a competitive and possibly hostile environment...
How to add controls to your from at runtime through the use of an array.
Use the ZOrder property of a control to set it's depth within the form therefore enabling a nice dynamic interface.
This module lists a collection of sorting functions and procedures for VB variant arrays with a single dimension.