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

Exposing the IContextMenu in a different way :)

I did find a intressting shell32 API in the MSDN which not have been outed before in this forum. I tried it but I did get a very unexpected error. Maybe we can cooperate to make this work? This API on...

View Article


Image may be NSFW.
Clik here to view.

How to encapsule in a efficient way both VBA Scripting and IShellItem handling.

This demo shows how you in an efficient way you can incorporate, take advantage of and encapsule both methods in one control. The methods are the two way of enumerations. The first one is more basic...

View Article


[VB6/VBA] Pure VB6 impl of AES in CBC, CTR, GCM and SIV modes

Description mdAES.bas is a pure VB6 implementation of AES block cipher and AES in CBC mode (w/ PKCS#5 padding) and in Counter mode. Usage First you have to initialize AES context with CryptoAesInit...

View Article

A VERY MUCH used function in my "Browse For Folder" sysTreeView

This function is ONE OF THE TOP MOST repeated and used function in my "Browse For Folder" UserControl so I felt a "guilt" to share it you all ;) Because it's so handy och usable ;) BUT be aware!! IF...

View Article

Image may be NSFW.
Clik here to view.

I couldn't just help it :) :)

1. Start a new project. 2. Add a command button to the main form from the toolbox to the left. 3. Double-click on the command button in design mode and add this code: 4. Click on the "run" toolbar...

View Article


Image may be NSFW.
Clik here to view.

[VB6] Cairo BRUSH

I present the class I have named cCairoBrush. It is not entirely complete, in fact initially I had thought of not posting it in CodeBank, but then I changed my mind because it seemed good enough and...

View Article

[VB6/VBA] Pure VB6 impl of AES in CBC, CTR, GCM and CCM modes

Description mdAES.bas is a pure VB6 implementation of AES block cipher incl. AES in CBC mode (w/ PKCS#5 padding) and in Counter mode. Usage First you have to initialize AES context with CryptoAesInit...

View Article

Renaming Items a la Explorer ;)

Have you ever wondered how the Explorer.exe renaming the folder items when you perform it? Just single renaming so far. But it's powefull ;) So be care of what you wish ;) Never BEFORE shown in this...

View Article


Image may be NSFW.
Clik here to view.

The ABSOLUTE safest way to rename one item or virtual item ak (IshellItem)

This IS THE MOST reliable and safest way to rename an item (physical or virtual) within the Shell's Namespace (From Desktop and down to whatever level of drives and everything in there between)' Put...

View Article


Do you need to expose IUknown Inteface WITHOUT INVOLING VB6?

Here to do it and it is straight compatible with Tb since no VB6 code involved. Code: Public Function GetIUnknown() As oleexp.IUnknown   Dim pISF As IShellFolder   Dim ppISF As Long   Dim pIUnk As...

View Article

Here is a little code snippet if you feel for manage your so called "Known...

As the the title says. Manage your known folders by enabling IKnownFolderManager Interface. I have not yet tried all methodes but it seems really useful and powerfull. For example setting up your own...

View Article

As a Kinder Egg 3 in 1 Progress Dialogs Plus One Extra

I did find in MSDN that shell32 are using three (four) different progress interfaces (derived from the first one) for same things. Here are they listed as code snippets Code: '<---From here is from...

View Article

How to get the info from the shell about the headers in "Detailed" view

The information is the caption for every header item in "detailed" view with 0-based index. For example: 0 = Name, 1 = Size, 2 = Type, 3 = Date etc etc. You need any type lib that can handle...

View Article


Image may be NSFW.
Clik here to view.

Windows File API

In the past I have used the Binary File Access provided by VB6 using Open #x. Binary access is not supported by FSO (File System Object). I wanted to find out if file access using the Windows API was...

View Article

Image may be NSFW.
Clik here to view.

Code to Paste Excel data from the clipboard in a Grid

I needed for one of my application to Paste selected part of Excel sheet, including text, Format, colors.... into a grid (here ssGrid2 from Steve) After doing some research, I never saw such code for...

View Article


Image may be NSFW.
Clik here to view.

Read Barcode & QRCode within VB6 using ZXing

Here is code to read Barcode & QRCode using ZXing Just download the library, create the form, add the button & list Code: Option Explicit ' *** Structures Needed For Registry Prototypes Private...

View Article

Image may be NSFW.
Clik here to view.

Forked version of LaVolpe's FRX file reader.

As a note, this is ONLY for someone who is doing some external processing of VB6 FRM files, such as reading them directly and/or massaging them for whatever reason. In my case, I'm messing with...

View Article


[VB6] OpenStreetMap

OpenStreetMap I dusted off an old program from more than a decade ago. (An that time the OSM data was really very poor...) If I remember correctly it was published on PlanetSourceCode. I revisited it...

View Article

RichClient: CairoSurface

I have created a cCairoSurface from bytes like this: Code: Dim s As cCairoSurface Set s = modCairo.CairoSurfaceFromBytes(m_PngBytesBGRemoved) Next, I crop it so that all outer transparent pixels are...

View Article

InputBox with full unicode support v. 2.5 and v. 2.55

The possibility of calling InputBox with unicode support has already been discussed on this forum, but in fact, I can provide you with the correct source code of the InputBox function. v. 2.5 Code:...

View Article
Browsing all 1470 articles
Browse latest View live