Difference between revisions of "Code samples"

From HashVB
Jump to: navigation, search
(User interface)
(Sleep)
Line 18: Line 18:
 
==Text boxes==
 
==Text boxes==
 
[[Numberboxes|Allowing numeric values only]]
 
[[Numberboxes|Allowing numeric values only]]
 +
 +
=Miscellaneous=
 +
[[Sleep_Without_the_Freezing|Sleeping without freezing the program]]

Revision as of 10:46, 7 September 2005

Below are a selection of VB code samples. Feel free to use any of them in your own projects.

Variables

How do you tell if a number is an integer?

How to pass a UDT to a class

COM objects

Creating singleton objects

Firing events in an object from a code module

Modularised Subclassing using interfaces and CopyMemory

User interface

How to Catch Mouse Hover and Out Events

Text boxes

Allowing numeric values only

Miscellaneous

Sleeping without freezing the program