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

Image may be NSFW.
Clik here to view.

[VB6] ListView / TreeView Extended and Custom Checkboxes

So I've mentioned this and posted snippets in a few threads, but thought it would be good to do a formal sample project on this, especially since I've never seen one done before. By default, the...

View Article


Image may be NSFW.
Clik here to view.

[VB6, Vista+] Core Audio - Change the system default audio device

Changing the system-wide default input and output audio devices WARNING: This feature is not designed to be accessible to programs and uses a COM interface that is undocumented and unsupported by...

View Article


Determining when two numeric ranges overlap

The code below will report True if 2 ranges (x1-x2 & y1-y2) overlap. You can put the two range parameters in either ascending or descending order. The function will rearrange them to ascending...

View Article

Multi Bit Manipulation Class

This submission is a class that handles bit manipulation in the following VB data types: Byte, Integer, Long, Single, Double, Currency, Date and One dimensional Long Arrays. (These are VarTypes 2 thru...

View Article

Image may be NSFW.
Clik here to view.

[VB6] ColorList - Another example of a custom dropdown list control

ColorList: A "dropdown list box" control for choosing among a list of predefined colors. This is a sort of drop-down list box written in VB6 that accepts a series of color text/value pairs. Users may...

View Article


Image may be NSFW.
Clik here to view.

Statistics in VB6

Alright, I'm embarking on this endeavor as one of those "spare time" projects. I've long thought that there should be a good VB6 open-source program for doing various statistical analyses, and I've...

View Article

Linking a File with a Folder so they Copy (or Drag) Together

crud, this was suppose to be in the main VB6 threads. Attn moderators, please delete. I've re-posted over there.

View Article

[VB6] Port for use DX9 in VB6.

Port and some examples: https://yadi.sk/d/2L5Yh8Yo39dfnY The source of dx_vb.dll (C++ 2008): https://yadi.sk/d/aggh01cn39dg5S The source of d3dx_sc.dll (C++ 2008): https://yadi.sk/d/Y9FOQIKB39dgWP To...

View Article


Image may be NSFW.
Clik here to view.

[VB6] SHFolderDlg class: BrowseForFolder

A VB6 Class with one Method: BrowseForFolder() It raises a Shell dialog for browsing to a folder. You can specify the "browse root" as well as an optional StartPath under that for the dialog to show...

View Article


Image may be NSFW.
Clik here to view.

[VB6, Vista+] Core Audio - Monitor for disabled/active, default, and property...

Monitoring audio hardware for changes At first glance, the IMMNotificationClient interface looks like it's simple and straightforward. And in the IDE it is, but it turns out when compiled all normal...

View Article

Image may be NSFW.
Clik here to view.

[VB6] ADO Recordset data to custom XML

This demo uses SAX to write an XML document in a custom format. Even though an ADO Recordset.Save method can write XML output to disk, this uses a proprietary serialization schema your program has no...

View Article

Image may be NSFW.
Clik here to view.

[VB6] OWM: How lean is my program?

A tool meant to help answer the question "How lean is my program?" OWM runs a specified program and samples its performance until completion. Then the final measurements are displayed, and may...

View Article

Multi-Monitor Routines (and "Better" routines even for single monitor systems)

Well, I recently helped someone solve the problem of centering a form on a secondary monitor. At that time, I had the necessary routines, but they weren't cleaned up as much as I'd like. And a couple...

View Article


Image may be NSFW.
Clik here to view.

vbRichClient5 SQLite Database Definition & Creation Helper Classes

This is some older code of mine that I've just updated to work with vbRichClient5 and to support Serialization/Deserialization. It may even have some bug fixes over the last publicly available version...

View Article

Image may be NSFW.
Clik here to view.

[VB6] List and view Alternate Data Streams using GetFileInformationByHandleEx

So I was playing around with this last night and thought it would make a good demo, since while it seems like a single API would be straightforward it turns out this is fairly complex. Alternate Data...

View Article


Image may be NSFW.
Clik here to view.

Unicode aware VB6 functions replacement

Hi, here is W replacement for several native VB6 functions / properties: - Dir -> DirW() - MkDir -> MkDirW() - Environ -> EnvironW() - App.Path -> AppPathW() - App.ExeName ->...

View Article

Here's a better way to generate random nums than using Rnd

Using Rnd always gives you the same set of numbers, whenever you start the program. Even if you use Randomize first to set a random number seed at the start of the program, it will eventually cycle...

View Article


Where's all of the MSDN docmentation for GDI+

I want to use GDI+ in VB6, and I just looked here https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx hoping to see a complete reference for GDI+ functions. However they only have links to...

View Article

[VB6] Convert CSV to Excel Using ADO

A piece of code I thought might be useful to some. Caveat first... Won't be the ideal solution for everyone. Having Microsoft Excel on the computer is not a requirement. Including an ADO reference is....

View Article

Image may be NSFW.
Clik here to view.

[VB6] VB6.tlb - Passing a ParamArray without Copying

The Issue: How do you access a ParamArray, and pass it to another function, without copying it. The Answer: Pointer magic. ParamArrays are really just a Variant Array - managed by the runtime. For...

View Article
Browsing all 1528 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>