C
C
Code Printer
Here's a small program that I use when I want a hard copy of my source code. It's fairly straight forward to use.
You can print entire project groups, single projects or just any old source file by itself.
It creates a Table of Contents, sorts the procedures by name and re-indents before printing.
Of course, your source is not modified in any way. This is the compiled version of the program.
Note that when entering the margins, these values are based on the actual number of columns and lines per page.
Formatting is done by counting characters and lines. I may post the source later.
You'll need the typical VB runtime files already installed before use.
NOTE: Each module you want to process MUST CONTAIN Option Explicit!!!
ComboBox Mouse Events
This sample project contains a class module that Mouse events to standard ComboBox controls. The events raised by this class ContextMenu, DblClick, MouseMove, MouseDown and MouseUp.
NOTE: This sample requires:
SSubTmr6.dll
to be registered before loading the project. Once you see how it works, you can use any subclasser you want.
Communicate with another instance of your app. (Updated 2006-03-19) Update should now work with windows in the system tray.
This OCX provides a way for your apps to communicate with one another, as long as they're running on the same machine.
It's very simple to use. I've included two test apps.
One is a simple method to pass any command line arguments to an already existing instance of your app and shut the current one down.
The other was used to develop the control and shows how to manipulate the properties.
Unlike most components of this type, there can be more than 2 instances running as long as the properties are set correctly.
If set correctly, there should be no practical limit of the number of apps that can talk to each other. Full source included.
Before running the compiled demos, you'll need to extract the zip file to a folder somewhere and register the OCX.
Note that there's no subclassing / polling or anything similar involved.
Control Insert/Overtype modes in a
RichTextBox
Here's one way of controlling the Insert/Overtype mode in RichTextBox controls.
RichTextBox controls have built in support for Insert/Overtype but they provide no way of accessing the current state.
This sample uses the same keyboard bit that the Statusbar control does to determine Insert/Overtype and provides an easy way to make the RichTextBox's Insert/Overtype status match.
Back to Index
A B
C D E
F G h I
j k L M N O
P q R S T
U V w x y z
|