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

How to track TextBox carot position, notify use if text1.SelStart =...

On the Form two ListBoxes are displayed side by side and a TextBox is on the right side. ListBox 2 is displayed having several CheckBoxes. When the user clicks on a CheckBox, from Private Sub...

View Article


Image may be NSFW.
Clik here to view.

VB6 compact Charting-Class (using an InMemory-DB as the DataStorage for...

This Demo is making use of the Cairo-Drawing-, as well as the InMemory-DB-features of vbRichClient5. Background: Although the contained cChart-Class is able to render any x,y-ValuePairs - often one has...

View Article


Well I did it. WMP Remoting in VB6, Change Vis, Control EQ Etc

Not sure where to put this, but I figured here would be as good a place as any. Mods, do what you must if not lol :chuckle: I sat down last week, 11 years after I actually needed it lol, and figured...

View Article

Image may be NSFW.
Clik here to view.

VB6 Rendering of Nodes in a Graph (with Hover over Connections)

This cairo-(vbRichClient5)-dependent Demo will show (as the Title says) - how to efficiently implement a scenario, where you have to manage "connectable, draggable Boxes" (as in the Graph in the...

View Article

Image may be NSFW.
Clik here to view.

[VB6] List files by level from a folder, in natural sorted order using...

cNamespaceWalk I initially brought this interface to VB6 to spite the people asking how to list files in sorted order, without actually having to sort them as they're added (the spite is that the...

View Article


VB6 - Simple DirectSound interface class to play little sound effects

Here's yet another class to play little sound effects on VB6 apps. Note that I'm not a programmer, never studied anything, so it's not very professional, but it's simple and very easy to use. The code...

View Article

Image may be NSFW.
Clik here to view.

Help me: vbRichClient5->vbWidgets-TreeTest--Tree loading speed

1.Slow loading 2.3000 data takes 5 seconds 3.Hope I can help to optimize the code, improve the speed of data loading 4.Whether JSON can be used to load the data string tree control 5.If there is a...

View Article

Image may be NSFW.
Clik here to view.

[VB6] - Class MP3 player from memory.

Hello everyone. I've developed a class for asynchronous playback of MP3 files in memory. For example, this can be useful for playing background music from resources, or play from the network avoiding...

View Article


Image may be NSFW.
Clik here to view.

VB6 Databinding with the DataGrid (used as a Read-Only RowPicker)

Not much to comment, other than what the Title says. More common in such scenarios are perhaps MS-HFlexGrids, but those don't support real DataBinding and are slower, because the Recordset-Data has to...

View Article


Image may be NSFW.
Clik here to view.

[VB6] Enhanced Tray Message w/ custom ToolTip icon and feedback, w/o...

IUserNotification2 Interface IUserNotification provided a very simple way to show a notification in the tray area, but it was very limited in terms of interaction. Vista introduced IUserNotification2...

View Article

Image may be NSFW.
Clik here to view.

[VB6] ProcCounters & ProcMonitor - instrument your application

An issue many of us deal with is trying different approaches in an application in order to improve performance. Often enough these are big changes, for example ADO Client vs. Server cursor location or...

View Article

Image may be NSFW.
Clik here to view.

[VB6] - Editing AVI-files without recompression.

Hello everyone. This is example of work with AVI-files (cut section and save it to a file). Everything is commented: Code: Option Explicit . . . ДЕКЛАРАЦИИ . . . Dim currentFile As String          '...

View Article

Image may be NSFW.
Clik here to view.

[VB6] - 3D sound using DirectSound.

Hello everyone. The example shows an implementation of 3D sound, every object in three-dimensional space "assigned" the sound. To work need a library dx8vb.dll. Shift / Ctrl - deceleration of 10 times,...

View Article


Image may be NSFW.
Clik here to view.

VB6 - Add to Hash using CNG

There are times when one needs to add to an existing hash, such as when calculating the HMAC hashes for TLS. With CAPI, the hash function could be easily split into separate functions; create the hash,...

View Article

[VB6] - Fireworks.

Code: Option Explicit Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundW" (ByVal lpszName As Long, ByVal hModule As Long, ByVal dwFlags As Long) As Long Private Const SND_ASYNC =...

View Article


[VB6] - Work with the pointers.

Often there are situations when you need to get data having only the address (for example, in WndProc, HookProc). Usually, simply copy the data via CopyMemory the structure after changing data and copy...

View Article

Image may be NSFW.
Clik here to view.

[VB6] - Get information about memory usage.

Code: Option Explicit   Private Const MAX_PATH = 260   Private Type PROCESS_MEMORY_COUNTERS     cb                          As Long     PageFaultCount              As Long     PeakWorkingSetSize...

View Article


Image may be NSFW.
Clik here to view.

[VB6] Simple, basic subclassing tutorial using the easier SetWindowSubclass...

So there's quite a few posts about specific questions where code like this is shown, but I really thought it would be better to have a subclassing tutorial type codebank entry for it to make it more...

View Article

Here's some code for calculating hashes.

It works with MD2, MD4, MD5, SHA1, SHA2-256, SHA2-384, and SHA2-512. Put the below code in a module (BAS file). It does everything that CAPICOM does regarding hashes, but without using any ActiveX DLL...

View Article

Code Snippet: Getting folder settings with SHGetSettings

So there's not a single result for SHGetSettings, and this is an odd function, so I just wanted to post a working method of using it. SHGetSetSettings isn't supported above XP, so even if it's still...

View Article
Browsing all 1460 articles
Browse latest View live


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