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

Image may be NSFW.
Clik here to view.

[VB6] Yet another simple and versatile Tray Icon code with subclassing

Yesterday, I didn't know what 'subclassing' is. Today I made a complete solution to serve all your tray icon needs. Easy to use: just create a cSysTray object in your form, pass the hWnd and you're...

View Article


Image may be NSFW.
Clik here to view.

VB6 - NewSocket (updated)

NewSocket.cls/mWinsock.bas has received several small updates. 1. All references to StrConv/vbUnicode have been removed and replaced by StrToByte/ByteToStr. This was necessitated to support some upper...

View Article


Flexgrid mouseover event

Hello, Is there a way to display a popup message when the mouse is over a cell and update the message when the mouse moves to another cell?

View Article

modZlib.bas

This is my module file for using zlibwapi.dll in VB6. To use this code, simply copy the text in the code box at the bottom of this post, and paste it into an empty module in VB6. Note that you must...

View Article

modCRC.bas

This is my code for CRC calculating. It calculates CRC32 using the standard polynomial 0x04C11DB7, and also 2 different 16bit CRCs (one uses the standard CRC16 polynomial 0x8005, and the other uses the...

View Article


Image may be NSFW.
Clik here to view.

[VB6, Vista+] Undocumented ListView feature: Footer items

Ran across this nifty thing on codeproject, and successfully got it working in VB. Tested and working with 5.0 ListView and API ListView (it will also work on krool's Common Control Replacement...

View Article

Image may be NSFW.
Clik here to view.

[VB6, Vista+] Undocumented ListView feature: Subsetted Groups (simple, no TLB)

Compatibility: Like other modern features, this should work with API-created ListView's including krools, as well as the 5.0 Common Controls ListView in an IDE and/or compiled EXE manifested for the...

View Article

Image may be NSFW.
Clik here to view.

[VB6, XP+] Code snippet: Show combined file properties window-...

It's easy to show the file property window for a single file with ShellExecuteEx, but what if you wanted to also show a property window for multiple files in multiple paths as you can do in Explorer?...

View Article


Duktape JS engine for vb6

Hi guys, thought i would share a project I have been working on. I wanted to find a newer javascript engine that I could use with vb6. All in all the MS script control is very capable and easy to use,...

View Article


Image may be NSFW.
Clik here to view.

[VB6, Vista+] Host Windows Explorer on your form: navigation tree and/or folder

IExplorerBrowser IExplorerBrowser is an easy to use, more complete version of IShellView that lets you have a complete Explorer frame on your form, with very little code. You can either have just a...

View Article

[vbRichClient] - How to create tabs ?

Hi, I would like to avoid to use the tabstrip control or the bugged SStabs. So I was looking for a code example of tabs with vbRichClient and I don't find exactly what I looking for. I'm about to use...

View Article

Image may be NSFW.
Clik here to view.

Register/Unregister both DLLs and OCXs with RightClick

I used a vbscript provided by Olaf to register vbRichClient5, changed it a bit, and added 4 entries to registry. Now I'm able to register/unregister both DLLs and OCXs with a simple RightMouse click...

View Article

[VB6] - Module for working with COM-Dll without registration.

Hello. I give my module for working with COM-DLL without registration in the registry. The module has several functions: GetAllCoclasses - returns to the list of classes and unique identifiers are...

View Article


Image may be NSFW.
Clik here to view.

Vb6 - cng test

Attached is a test program for various CNG (Cryptography Next Generation) functions. 1. Create Key Pair 2. Sign Data 3. Verify Signature 4. Test Hashes (AES-GMAC not functional yet) 5. Generate Random...

View Article

Hook system wide with DLL in C++

Hello, Even we are in 2015 and vb6 is old, it’s still great. As I had been in difficult to find a simple and efficient method to do hooking system wide, so I share my source code, here in zip...

View Article


Image may be NSFW.
Clik here to view.

[VB6] Color Management - Different Approach

The class included in the attached zip file is intended for those that want to add some color management to their VB projects with minimal effort. The color management class (cICMLite) uses GDI higher...

View Article

[VB6, Vista+] Code snippet: KnownFolders made easy with IKnownFolderManager

Using the KnownFolderManager Object oleexp 2.0 includes the IKnownFolderManager and IKnownFolder interfaces. If plan on doing any work with the Known Folders that replaced CSIDL Special Locations and...

View Article


[VB6] Color Management and VB6 How-Tos

The intent of this thread is to explain how color management can be used in VB6. There may be code samples included in some posts and/or links where code samples can be found. This thread will be...

View Article

Algorithm - Detect Alpha Usage and Type From Pixel Data

For those of us that use GDI+, we know that it has a major issue loading bitmaps that contain alpha data. Maybe not a major concern, because GDI basically ignores the alpha channel in most every...

View Article

M2000 now can handle Word

After two days I found a way to call methods with named arguments. The problem was in typelib "IDispatch Interface - Eduardo Morcillo" So I use the ole/com object user to extract the idl file. Code:...

View Article
Browsing all 1478 articles
Browse latest View live


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