Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier

[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 Article



Image may be NSFW.
Clik here to view.

Form & 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 Article

Image may be NSFW.
Clik here to view.

Changed 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 Article

Image may be NSFW.
Clik here to view.

VB6 - 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 Article

open 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 Article


Convert 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 Article

Image may be NSFW.
Clik here to view.

Lots 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 Article

Image may be NSFW.
Clik here to view.

Some 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 Article


Image may be NSFW.
Clik here to view.

All 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 Article


How 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 Article

I *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 Article

Image may be NSFW.
Clik here to view.

My 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

Image may be NSFW.
Clik here to view.

[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


Image may be NSFW.
Clik here to view.

RCFlexGrid 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 Article

Image may be NSFW.
Clik here to view.

Standard 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 Article





Latest Images