[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)
Updates: March 21, 2024: * Fixed problem with minimizing & maximizing. * Replaced collections with arrays, and fixed all the "Helper" functions. March 20, 2024: * Initial release. Ok, yeah, this...
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 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 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 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)
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 ArticleMy CallStack Class (Working Demo - Updated code (again))
OK, I found a couple more small inconsistencies, a variable that's not being used and added some frivolity for fun. The upload below is good and complete (with the exception of a counter starting at 2...
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 ArticleGlobal Mouse Position Over My Form
I need to get the mouse XY coordinates while over a form with several controls visible. I use this to get the global mouse position. Form scalemode is vbTwips. Form is 2 - Sizable Form has no control...
View ArticleAutomatic mouse click operation
Automatic mouse click operation Code: Option Explicit Private Declare Function SystemParametersInfo _ Lib "user32" _ Alias "SystemParametersInfoA" (ByVal uAction As...
View ArticleRCFlexGrid Control (vbRichClient)
Krool wrote a really great control, VBFlexGrid. For vbRichClient users, we also really needed a component like VBFlexGrid, so I rewrote Krool's VBFlexGrid with RC6. I developed RCFlexGrid (cwFlexGrid)...
View ArticleStandard DLL Creation (and Usage) with VB6 (à la, The Trick)
Let me say from the outset that it's The Trick who sorted the magic of doing this, and who seems to know all the compiled VB6 headers better than the back of his hand. He's done some work that allows...
View ArticleRandom-Depth Tree Creator/Editor
Edit (2024-04-18@2216ish) I made a mistake. I've been running the Tree Creator over and over and it is *not* doing what I want. Essentially any Root Branch could branch differently from any other root...
View Article