Textbox validation for integers and float/scientific numbers
This is a replay to this thread http://www.vbforums.com/showthread.p...ttons-and-more Not only we can valid the numbers but this can be done if someone try to select a part of the text and deleted or...
View ArticleUnicode OptionButton
Here's a Unicode Option Button. Just see small sample project. It should be self-explanatory. One weakness: You can't paste the caption with pure unicode (without an RTF format being in the clipboard)....
View ArticleZoom Dialog
This is a part of file selectors, and here I made a class to be used more easily. In example is a dialog that can be zoomed, without using any window style. So we can draw anything. The window to zoom...
View ArticleKeep open CreateObject("ADODB.Connection")
I am working now changing the old DAO to ADO in my M2000 environment. I see some reduce in speed and I found why...All of my commands use the old DBEngine and workspaces...and so I was to change that...
View ArticleZcreenshot (translucent selection-box seamless screenshot application)
Thought I'd share this awesome little open-source app with tons of useful code examples with VBForums. I've won 2 awards for code of the month over at PlanetSourceCode, and this was one of them. Fully...
View ArticleOptionButtonEx (grouping without frames, Unicode at runtime, & lightweight)
Here's what I'm calling OptionButtonEx. It has two features that the regular OptionButton doesn't have: 1) There's a GroupNum property that allows grouping of sets of them without the need for creating...
View Article[VB6] MS Office (MODI) OCR - OCR "for free"
This may already have been posted, but a search turned nothing up here in the CodeBank. If you have an appropriate version of Microsoft Office you can use MODI to do OCR on images. The obvious...
View Article[VB6] Code Tip: Toggle Button with Image and Text (Vista+, ComCtl6)
NOTE: I will make a sample project, but since I had deleted this content and there was a 'please delete me' filler I wanted to repost as soon as possible. What happened was, I tried the code I posted,...
View ArticleHow to make a new Ctrl-Break key.
My new Win 8.1 system keyboard doesn't have a Ctrl-Break key, and I found that extremely annoying when working with Visual Basic. So with some research, I located some info on how to disable the Caps...
View ArticleVB6 Dual-Pivot-QuickSort
Just to throw something new (for VB6) into the ring of competing Sort-Algos... I've just finished porting (from Java-SourceCode) the relative new (Sep. 2009) Dual-Pivot-Algorithm, invented by Vladimir...
View ArticleFix for SSTab not correctly handling focus and comboboxes
Make a Class module out of the following code, create an object with it for any form that uses the SSTab control and follow directions in comments. Code: ' '...
View ArticleSimple Bingo Engine
Hey guys, I made this Bingo Engine, in case any of you guys need ideas on how to make one or need one, there you go. I have also included a small demo project. Edit: I updated the pool number generator...
View ArticleRandom number generator
Here is a small program that demonstrate a random number generator. There are two buttons and a listbox. We can see the frequencies of each of 100 numbers (from 0 to 99). We produce 2000000 random...
View Article[VB6] Call Functions By Pointer (Universall DLL Calls)
I was recently made aware that a function I've used from time to time for calling virtual functions of COM objects was perfectly adept at calling functions from just about any standard DLL out there....
View Article[VB6] Lickety - an alternative to Slurp'n'Split
We're in a time of PCs with vast amounts of RAM and little going on in the background, despite money being spent on multi-core CPUs. What was once considered a crude and naive practice of slurping...
View Article[VB6] Clipboard/DataObject Extension Class
The attached class extends VB's Clipboard and Data objects. Change its extension from .txt to .cls after downloading. 1) Support for dragging and pasting virtual files. Virtual files exist in Windows...
View ArticleVB6 Mercator-Projection (or - how to handle lots of small objects on a...
Just a small Demo, which demonstrates a Mapping for Latitude/Longitude based Coords into a Mercator-Projected MapImage (the Background-image of a VB-PictureBox). What's often preferred (in case one has...
View ArticleVB6 Render PDF-Files directly (and generate a Preview from the same...
Since the PDF-Printing-Topic comes up occasionally - sometimes with recommendations and links to VB-Modules which try to write a PDF-file directly - the PDF-support of the cairo-lib (wrapped...
View ArticleVB6 Regfree-Usage of your own VB- and other COM-Dlls per DirectCOM-Helper
Think, that this topic is an important one - and deserves its own article. Hmm, how to begin... Once there was a time, in the dark ages, long before "Manifestos" became available to human beings, that...
View ArticleWinpkFilter VB6 Samples
The WinpkFilter development kit no longer includes VB6 samples. Version 3.2.3 has added support for IPv6, resulting in a number of changes to the data formats. I have taken the liberty to update the...
View Article