[vb6]Treeview - Prevent from indenting when no icon is used
Just a neat option. It has its limitations. It works for both versions 5 & 6 of the common controls TreeView. In the screenshot below, you'll notice that the left image has indentation, or reserved...
View ArticleNoob Question about files and date :wave:
Thanks in advance for the replies! I maked a folder with date as name to store daily reports about the system data in a log.txt file Is possible to read log files using a calendar? for example I...
View Article[vb6] Patch Icon/Cursor Resource File Entries
The Resource Editor (ResEdit) in VB can corrupt icon/cursor group data. The corruption is minimal, except PNG-encoded related entries. This corruption should not harm anything except in rare scenarios....
View Article[VB6] WTSSendMessage
Here are a couple of simple demos. One just shows how to have a "MsgBox" that times out after some number of seconds if the user does not choose a button. The other shows how you might raise a "MsgBox"...
View ArticleFindResource and the IDE
Okay, I need a function that'll just tell me whether a file is in my resources or not. I'd prefer not to use LoadResData with error trapping because some of my resource files are somewhat large....
View Article[VB6] InkEdit with Windows SpellCheck
Here is an example of using an InkEdit control in "inkless mode" as a Unicode-aware RichTextBox. But on Windows 8 and later there is more! The program turns on the built-in Windows spellcheck...
View Article[VB6] IEnumVARIANT / For Each support without a typelib
In my own projects I use a typelib and a custom interface to do the same thing, (comparable to .NET and Olaf's examples) which might seem overly complex, so here's an example that gets the job done...
View Article[VB6] Registry Key Virtual type checker
Hi, this module allows to check whether Registry Key is: - Shared - Redirected - Usual - Symlink And to show a target of symlink. Note: Reflected type of keys (OS Vista and older only) are not...
View ArticleVB6 - InkEdit and SelText
The InkEdit Control has many useful features, but when it comes to SelText, it does not behave like a normal TextBox. When recovering the text from a multiline InkEdit box, each line is separated by a...
View Article[VB6] INI file class (unicode aware)
'Mainly intended for caching data beetween read-write operations 'Supports UTF-16 LE ini-files format 'Provides wide range of methods 'Doesn't support reading / saving commentary in ini file Based on...
View Article[VB6] Always Behind / Always at the Bottom / Bottommost
The following code will put a Form always behind/at the bottom of all top-level windows. This is accomplished by processing the WM_WINDOWPOSCHANGING message. Code: Option Explicit 'In a standard...
View ArticleVB6 - Activating Hyperlinks using InkEdit
I found code that activated Hyperlinks with VB6 and a RichTextBox. If was far more complex than I wanted because it used subclassing. So I converted it to use an InkEdit box without subclassing. The...
View Article[vb6] Resource Image Viewer/Extraction
A tool I developed to help with another project I'm working on. The tool worked well and decided to pretty it up and share it. This is similar to your typical resource-hacker, but limited in scope to...
View ArticleVB6 - Sample Tray Activation
Attached is a sample program that uses a Tray Icon to activate a program. It uses dilettante's "NotifyIcon" program. http://www.vbforums.com/showthread.p...ght=notifyicon I have left his explanations...
View Article[VB6] Registry Hives Enumerator
This is very specific, but maybe will be useful for some registry guy :) In short: if you need to build a ton of nested loops for: just say, you have a task to enumerate: 1) several keys 2) in the same...
View ArticleVB6 - Very simple CoreAudio Demo (vbRichClient5)
Olaf wrote a wonderful VB6 RC5-CoreAudio-Demo, which is very beautiful and full-featured. I simplified it into a very simple Demo for beginners to learn. Attached Images Attached Files...
View Article[VB6] Detect if process is hung
It's a console application based on IsHungAppWindow API. Syntax: FreezeDetector.exe [opt_Filters] Filters: "IMAGENAME eq [Process name]" "PID eq [Process ID]" Note: All filters should be quoted...
View ArticleXML Parser (written entirely on VB6)
Copyrights: Jason Thorn (Fork by Alex Dragokas) There are 2 projects: 1) GUI (activeX dll based) compile vbXml-browser\Browser\Browser.vbg Required: MSCOMCTL.OCX 2) Simple app (debug. window sample)...
View ArticleCode for working with Unsigned Shorts
In VB6, the Integer data type is equivalent to a Short (signed short) in C. Now when you encounter a UShort (unsigned short) in a file or in a structure returned from a DLL call, what do you do? You...
View ArticleVB6 - Simple Hash Program
Attached is a program to calculate the various hash values for a string or a binary file. This can be useful if you are downloading an executable file (.exe/.dll etc) and the author has provided a hash...
View Article