Difference between revisions of "Code samples"
From HashVB
(→Windows) |
|||
Line 23: | Line 23: | ||
===Windows=== | ===Windows=== | ||
* [http://www.earlsoft.co.uk/tips/drag.php Dragging windows/controls the easy way] | * [http://www.earlsoft.co.uk/tips/drag.php Dragging windows/controls the easy way] | ||
+ | * [[Creating Floating Tool Windows|How to create a tool window that floats above your app]] | ||
* [[Subclassing|How to subclass a window to catch useful windows messages]] | * [[Subclassing|How to subclass a window to catch useful windows messages]] | ||
* [[Modularised Subclassing|Modularised Subclassing using interfaces and CopyMemory]] | * [[Modularised Subclassing|Modularised Subclassing using interfaces and CopyMemory]] |
Revision as of 15:24, 30 September 2005
Below are a selection of VB code samples. Feel free to use any of them in your own projects.
Contents
Variables
- How do you tell if a number is an integer?
- Obtain the type name for a variable
- Pass a user defined type to a class
COM objects
- Firing events in an object from a code module
- Modularised Subclassing using interfaces and CopyMemory
- Creating singleton objects
User interface
GDI
Text boxes
Windows
- Dragging windows/controls the easy way
- How to create a tool window that floats above your app
- How to subclass a window to catch useful windows messages
- Modularised Subclassing using interfaces and CopyMemory