Results for "Author: ulli"
This little AddIn toggles VB's code pane windows between normal display mode and full screen display mode. Simply compile the .dll into your VB folder and then use the Add-Ins manager to load it into VB. Updates include: safeguard against accidentaly closing a codepane or VB while in maximized state, and an emergeny fallback in case VB crashes while maximized. So the necessity to manually re-do the registry after a crash should have gone. Some of your feedback suggestions have also been added.
A little set of routines to prevent Windows from switching into StandBy or Sleep Modes. Use them if you have a long-running or overnight application which cannot be interrupted or suspended by Windows going into hibernation after a period of user idleness (as may be optioned in System Administration).
This AddIn will put all necessary instrumentation into your project to create a run profile. Then during execution profile data are acquired and finally evaluated and shown. New: You can now also replay your program code execution at different speeds. ► Bug reported by hedgehog fixed.
This Sort-Class can be used to retrieve the elements in a one-dimensional table of strings in either ascending or descending sequence. The table itself is not altered in any way by this process, rather pointers into the table are returned which point to the elements in the table in the requested order. Tests on a 1800 MHz Athlon processor have shown that the Sort is in fact the fastest I know, sorting 100,000 elements on a five byte random sort key in under 0.3 seconds. The speed varies only very slightly with the number of elements to be sorted, so one million elements take about three seconds to sort. Any special presorting has no measurable effect on speed (Quicksort by contrast is almost killed by a presorted sequence).
My son and I made this for his IT class. You set or reset the operands bits, the mode, and the injected carry; the binary result, the intermediate and final carry and the overflow bit are then computed and displayed by applying the actual logic in the diagram. Download 8 kB
The proper way to find out whether your code is running in the IDE or was compiled
Make a standard command button very flat ;-)
Example
A little set of routines and a test driver to read table or array properties: whether it is (re)dimensioned or still undimensioned, the number of dimensions, LBound and UBound for each dimension and a few other things that may come in handy. No fuss about skipping around Errors or such, just the proper way to do it.
This is a little cat which yearns for the mouse - at least it follows it with the eyes all the time. You can drag it anywhere you like, and it goes away when you doubleclick it. Try it, download is only five kB.
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 project shows how you can intercept GPFs. Instead of crashing your application in case of a GPF, a PopUp is openend showing error details and giving the user the choice between continuing the buggy application or terminating it in a neat and proper way. (This is based on a previous submission. Tested on WinXP only.)
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 and fonts are also possible as well as an assortment of Icons to be displayed in the tooltip and finally individual delay- and show-times. And whats more - the tooltip can now speak using Microsoft's Speech Object Library (SpVoice in sapi.dll), no XVoice.dll or VText.dll! 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 10 kB.
Demonstrates the use of a property bag to store "things" in a file in any order and to retrieve those things from that file in any order. "Things" include strings, numerics, results of arithmetic or string operations, booleans, fonts and even pictures.
Remember the old days when the Black Avenger of the Spanish Main (alias Tom Sawyer) roamed the Carribean Seas and spread terror among his foes? Well, this is what went overboard one day and you are the lucky one to find it.
This creates a triangulated terrain model from samples taken in the real world. Samples consist of x-, y-, and z-coordinates taken at arbitrary points in the terrain during a survey on site or during a satelite or airborne radar survey. The project shows several methods and techniques regarding trigonometry, maths, and transforming/projecting 3D entities onto a 2D drawing canvas. Some documentation and the basic theory about the triangulation process is included. Download is 77kB.
In one line - well, with a little cheating ;-)
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)
The trouble with VB's own Recent Projects List is that it is untidy and unsorted, it grows until you can't find anything, it does not remove broken links, and last but not least the window is way to small to display long pathes. So what we need is a little helper to tidy up and sort VB's Recent Projects List. And wouldn't it be nice if you could launch VB with an open project inside it right from the beginning? Well, try this one - download is 24.5 kB. (See ReadMe.txt)