Replace All Colors Except One
Picture loaded into a Picturebox. One Color, say black, I want to keep. ALL other colors I want to change to one specified color. e.g. Keep vbBlack All other colors changed to vbRed Looking for a fast...
View ArticleSubclassing At Its Simplest
There are several examples of how to subclass in this CodeBank. However, most go into complexities of how to "protect the IDE". I'm posting this to provide an example of VB6 subclassing at its...
View Article[VB6/VBA/twinBASIC] The quickest way to the real Windows version:...
The simplest version APIs all lie unless you have a manifest. If you want to be sure you get the real version no matter what, there's various more complicated techniques. The one I had been using...
View ArticleForm & Controls Resizer (including Font.Size)
Ok, yeah, this has been done a couple of times before. But I've never been happy with what's out there. So here's my version. There's a sample project with everything in it. But I'm going through it...
View ArticleChanged Class (Keep track of the "dirty" status of your data).
Edit: I made a couple dumb errors in the Demo and fixed them. They weren't important to the point of the Demo so you don't have to download the new ZIP if you don't want to. cChanged Demo.zip This is a...
View ArticleVB6 - Add/Modify UDTs (User Defined Types) to/from a VB6 Collection (No...
Having recently encountered (again) this ancient issue of trying to add UDTs to a VB6 Collection, I have decided to take another look at it. There are several existing methods to tackle this problem...
View ArticleA WAN that never returns a 404 error
G'Day Guys Easters almost here & I promised myself I would spend more time on a project I'm starting to wonder if IT is even possible in VB6 I have a .au direct domain http://5o.au - sub-domains I...
View Articleopen regedit to desired key
regmon used to have a neat feature where it could open regedit and navigate the treeview to the registry key it was displaying. turns out Mark spun it off into its own command line utility as well...
View ArticleTake advantage of IThumbNailProvider
Here is a simple example how to to "skin" your form with a thumbnail. Since with this thumbnailhandler you can use up to max 2048 pixels depending on what source you use! I just choosed to make a...
View ArticlePrinting a Large Image from Combined PNG Files: Ensuring Correct Width Settings
I've stumbled upon an intriguing challenge with my printer's handling of document order. Initially, I was baffled by how my printer would process 30 print jobs, seemingly disregarding the intended...
View ArticleConvert a Number from a certain base to a different one
I share my Code, as anticipated in the following thread: https://www.vbforums.com/showthread....imal-to-binary Code: Function Convert•Num‹Num(Number As String,...
View ArticleLots of Functions to Deal with Controls
Finding the widest, right-aligning, changing their size to fit the contents of their caption or text, making comboboxes as wide as their widest list entry, etc. bControls.zip This has some...
View ArticleSome of the most concise, best code I've ever written
It's very simple and nothing ground-breaking or anything like that. It's basically search behavior. So the way it works is that there are four locations - country, state, city and postal code. I can't...
View ArticleMy CallStack Class is a mess
OK... that was click-bait. It's not a mess but man does it bring my app to its knees. For example, when I click the Communications Button (which saves whatever setting it had last such as ALL, Past...
View ArticleAll My DB Utilities (for DAO)
I love this file. I will marry this file if it will have me. I will be buried with this file. This file should have my babies. DAO Utilities.zip Edit: Of course you'll have to remove all the callstack...
View ArticleHow I enable Cut, Copy and Paste buttons and menu items
I like the way I did this. Basically it's set up on a Timer set to 250 milliseconds. So every quarter second it's getting checked. You can see the slight delay but I don't want to make the Timer too...
View ArticleMy CallStack Class is a mess (Working Demo)
CallStack Demo.zip If you have MZTools or something like it you can create a macro that automatically inserts the callstack stuff into any procedure with the correct information. I really like MZTools....
View ArticleI *REALLY* don't like the maskededitbox. So I rolled my own.
It's not nearly as functional but it does what I need it to do without having to deal with mask, format and I don't remember what else. I stopped using them long ago and don't remember all the ways...
View ArticleMy CallStack Class is a mess (Working Demo - Updated code)
============== 4-5-2024 @1755ish This is a new version of the code. It's cleaned up a lot and more consistent in the style as well as some code just being better. Same functionality as before....
View Article[VB6, twinBASIC] Code snippet: Toggle airplane mode
Newer versions of Windows have an 'Airplane mode' toggle like cell phones that turns off all the radios, which on a desktop might only be WiFi, but if you have a Surface tablet would also Bluetooth...
View Article