Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Browsing all 1459 articles
Browse latest View live

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


A 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 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

Image may be NSFW.
Clik here to view.

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


Image may be NSFW.
Clik here to view.

Printing 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 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


My 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 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

Image may be NSFW.
Clik here to view.

My 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 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 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


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


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

Automatic mouse click operation

Automatic mouse click operation Code: Option Explicit Private Declare Function SystemParametersInfo _                 Lib "user32" _                 Alias "SystemParametersInfoA" (ByVal uAction As...

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
Browsing all 1459 articles
Browse latest View live