All Visual Basic 6 Code

101 hits, 11 pages | Prev | Next | Advanced Search

Title Posted On Description
Print Form 2017-08-14

A better way to print a form than the PrintForm method. Can also print a screen image and/or save it to disk.

Program Termination 2017-08-23

How to kill a running application using the the Windows API.

Read from a database without a control 2018-01-14

This snippet of code shows how to connect to a database using a Data Source Name (DSN), and a reference to Microsoft ActiveX Data Objects (ADO).

Reading and writing text 2018-02-04

These two snippets of code demonstrate how to read a file, as well as how to save a file.

Resolving hostnames and IP Addresses with VB6 2016-02-18

Some time ago, I wrote an app that required the ability to resolve hostnames to IP Addresses, and vice versa.  After some searching around, I found this gem.

Retrieve the path of special folders 2017-08-28

Retrieve folders such as the Desktop and My Documents. 

Retrieving System Uptime 2017-09-23

As a part of monitoring your environment, you will need to watch the uptime of your systems. There are a couple different ways to do this.

Reverse a String 2018-01-20

This is a string handling function that that reverse a given string. For example, Good Morning becomes gninroM dooG.

RichTextBox Position 2017-08-17

How to make the RTB caret follow the cursor. Shows the current row and column below the cursor. 

RichTextBox Scrolling in VB6 2017-08-17

How to create a "chat" style window. This sample duplicates the functionality of a window such as those in mIRC - where text is added to the bottom of a RichTextBox and is scrolled into view IF the scroll bar is at the bottom, but doesn't move the window when the user has scrolled up. 

101 hits, 11 pages | Prev | Next | Advanced Search




Code Links