VB6 - Remember App window Position and Size
Attached is a demo of saving and restoring an application position and size. Rather than hijacking Elroy's thread, I decided to create a new one. This code is further simplified from the code that I...
View Article[VB6] Neural Network
Since a neural network is missing in the codebank here is my version: It's very simple. It initializes with "CREATE" Code: NN.CREATE Array (2, 2, 1), 0.25, 4 -Where Array indicates the NN topology...
View ArticlePNG (specifically 32-bit RGBA type PNG) Editing Tool
Hi All, This was a request and I thought it would be fun. It turned out to be quite the learning experience. Basically, I've developed a tool for editing the Gamma, Brightness, or Contrast of a 32-bit...
View Article[vb6] GDI+ Image Attributes Intro & Usage
Thought it would be worthwhile sharing some information regarding GDI+ and its Image Attributes object. Specifically, we are going to discuss the color matrix. This is a 5x5 matrix/grid, variable type:...
View ArticleVB6 - Sort Routine
Shown here is a sort routine that utilizes the built in Command Line sort function. Outside of this routine, a file is loaded into a Textbox and the file name is saved in "m_Filename". The user is...
View ArticlePNG/TGA (specifically 32-bpp type files) Editing Tool
Note, this project uses mscomctl.ocx version 2.2. If you have an older version, the project may not load correctly for you. To fix this problem, you will need to update your mscomctl.ocx. Here's a link...
View ArticleStandard API Color Picker
It's strange that this doesn't have more of a presence on these forums than it does, but hey ho. Attached is the my ChooseColorAPI wrapper that I've just polished up. Here are its features: It just...
View Article[VB6] BatchRtb 2
Since I am almost 100% retired now and doing a lot less VB6 programming I have been looking for things in my toolkit that might be worth sharing with the remaining VB6 community. I have done a big...
View ArticleVB6 - Multiline Textbox Printer
I had previously used a RichTextBox and the SelPrint routine, but I discovered that routine would not work with an InkEdit Control. With the help of jpbro, we put together a routine for the InkEdit...
View ArticleVB6 - Text Editor
I found a need for addtional functions that NotePad did not provide, so I came up with my own Text Editor. It has most of the functions of NotePad with a couple of extra ones. Code: File...
View ArticleAES Demo
Attached is a demo of AES encryption/decryption using CNG. The default uses a key size of 128, but there is provision for 192 and 256. The HMAC is SHA256, which is what is used in TLS 1.2. The...
View ArticleVB6 MultiProcessing (StdExe-IPC via SharedMemory)
This demonstrates, how one can implement robust, asynchronous Workers in VB6 - by using a (cross-process) SharedMemory-approach (which is one of the common IPC-mechanisms). For convenient usage, the...
View ArticleAuto-Complete RichTextBox
Whipped this up this afternoon (bored!) so it may not be perfect. It was mentioned/requested here: http://www.vbforums.com/showthread.p...the-first-word It's a little different from the usual...
View Article[VB6] - Module for working with multithreading.
Hello everyone! I present the module for working with multithreading in VB6 for Standard EXE projects. This module is based on this solution with some bugfixing and the new functionality is added. The...
View ArticleViewing Token Privileges
Privileges can be required to access system resources, and it can be a nuisance when an API call fails because a privilege is not available. This application displays the privileges available to the...
View ArticleEncrypting passwords with CryptProtectMemory
Protecting passwords in memory In this age of security awareness, it is important to protect any passwords or other sensitive data that may be used by applications and written to the computer memory....
View ArticleScintilla Source Code editor OCX for VB
I noticed the board didn't have much on the Scintilla source code editor so wanted to make sure a copy of this got saved. Scintilla is a source code editor component that includes source code...
View ArticleHexeditor OCX control
A hexeditor/viewer is another commonly needed component. Here is one I have been using for a number of years now. The core of this one was taken from a standalone hexeditor written by Rang3r and...
View Article[VB6] - PE parsing library
This is a set of classes for parsing PE files. Exposes most commonly needed fields such as optional header, imports, exports, relocations, resources, sections, etc. Includes a couple extras such as a...
View ArticleVB6 - Hash10
Now this one makes a lot of sense. I accidentally ran across it while searching for something else. https://docs.microsoft.com/en-us/win...ypt-bcrypthash BCryptHash performs a single hash computation....
View Article