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

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.

My first ever example ported from C++ to VB6 as I interperated it with a...

I felt for doing my very first interperation of a sample from the Win7 SDK "strait out from the comfort." I did NOT peep at any other VB6 code while I did this. Just soly relied on the C++ source and...

View Article


Image may be NSFW.
Clik here to view.

Get Real PIDL From NET in the MOST simple way

Have you ever wondered over how to get a PIDL from a NET object (WWW or FTP or //Netpath)? Here it comes as the most simple way. First you create a IShellItem from the URL path since the IShellItem in...

View Article

[VB6/VBA] Wheeler & Needham’s Tiny Encryption Algorithm

This mdTea.bas is implementation of latest XXTEA variant of the Wheeler & Needham’s Tiny Encryption Algorithm. While the C code in the linked Wikipedia article is short and elegant the VBx variant...

View Article

Used Printwindow to capture Window and cropping

Code: Option Explicit Public Type RECT     Left As Long     Top As Long     Right As Long     Bottom As Long End Type Public Type POINTAPI     x As Long     y As Long   End Type Public Enum...

View Article


Image Processing: Image similarity algorithms aHash, dHash, pHash

There are about 4 types of hashing algorithms: Difference Hash: DHash(Difference Hash) Average Hash: AHash(Average Hash) Perceptual Hash: PHash (Perceptual Hash) Wavelet Hash: WHash (Wavelet Hash) I...

View Article

Image may be NSFW.
Clik here to view.

Control the Chrome browser with Chromdirver for web page automation

Control the Chrome browser with Chromdirver for web page automation There are a lot of similar codes, but very few pure VB ones. This is the code I used to write by referring to other people's code and...

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


used HttpSendRequestEx Upload data to the web page in sections

// InternetOpen ---:InternetConnect----HttpOpenRequest----InternetSetOption -HttpAddRequestHeaders---HttpSendRequestEx Code: Option Explicit Event HttpError(Status As String) Event HttpOpen(Status As...

View Article


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 Article

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


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

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


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