Difference between revisions of "Code samples"

From HashVB
Jump to: navigation, search
(Moved entries from [Tips])
m (Reduced header sizes)
Line 1: Line 1:
 
Below are a selection of VB code samples. Feel free to use any of them in your own projects.
 
Below are a selection of VB code samples. Feel free to use any of them in your own projects.
  
=Variables=
+
==Variables==
 
* [[Is it an integer|How do you tell if a number is an integer?]]
 
* [[Is it an integer|How do you tell if a number is an integer?]]
 
* [[Passing UDTs to Classes|Pass a user defined type to a class]]
 
* [[Passing UDTs to Classes|Pass a user defined type to a class]]
  
=COM objects=
+
==COM objects==
 
* [[Events from a module|Firing events in an object from a code module]]
 
* [[Events from a module|Firing events in an object from a code module]]
 
* [[Modularised Subclassing|Modularised Subclassing using interfaces and CopyMemory]]
 
* [[Modularised Subclassing|Modularised Subclassing using interfaces and CopyMemory]]
 
* [[Singletons|Creating singleton objects]]
 
* [[Singletons|Creating singleton objects]]
  
=User interface=
+
==User interface==
 
* [[Mouse Hover and Out Events|How to Catch Mouse Hover and Out Events]]
 
* [[Mouse Hover and Out Events|How to Catch Mouse Hover and Out Events]]
  
==Text boxes==
+
===Text boxes===
 
* [[Numberboxes|Allowing numeric values only]]
 
* [[Numberboxes|Allowing numeric values only]]
 
* [http://www.earlsoft.co.uk/tips/chat.php Srolling chat windows]
 
* [http://www.earlsoft.co.uk/tips/chat.php Srolling chat windows]
  
==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]
  
=File handling=
+
==File handling==
 
* [http://www.earlsoft.co.uk/tips/fileio.php File I/O. Reliably]
 
* [http://www.earlsoft.co.uk/tips/fileio.php File I/O. Reliably]
  
=Miscellaneous=
+
==Miscellaneous==
 
* [[Sleep_Without_the_Freezing|Sleeping without freezing the program]]
 
* [[Sleep_Without_the_Freezing|Sleeping without freezing the program]]
 
* [[Windows version|Detecting the version of Windows]]
 
* [[Windows version|Detecting the version of Windows]]

Revision as of 20:26, 8 September 2005

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

Variables

COM objects

User interface

Text boxes

Windows

File handling

Miscellaneous