Difference between revisions of "Code samples"

From HashVB
Jump to: navigation, search
m (Corrected a redirected link)
Line 1: Line 1:
Below are a selection of VB code samples. Feel free to use any of them in your own projects.
 
  
==COM objects==
 
* [[Events from a module|Firing events in an object from a code module]]
 
* [[Modularised Subclassing|Modularised Subclassing using interfaces and CopyMemory]]
 
* [[Singletons|Creating singleton objects]]
 
 
==File handling==
 
* [http://www.earlsoft.co.uk/tips/fileio.php File I/O. Reliably]
 
* [[Special folders|Getting special folder paths]]
 
* [[API_Recursive_DIR_Structure|How to iterate through a directory structure using APIs]]
 
* [[Working with INI files in .NET|Working with INI files in .NET]]
 
 
==Networking==
 
* [[Detecting_Network_Adapters|How to get a list of the network adapters on the system]]
 
 
==Strings==
 
* [[GUIDs|Creating unique IDs (GUIDs)]]
 
 
==User interface==
 
* [[Control arrays|Creating and using control arrays]]
 
* [[Mouse Hover and Out Events|How to Catch Mouse Hover and Out Events]]
 
* [[Catch KeyPresses over whole form|How to catch KeyPresses on a form when a control has focus]]
 
 
===Graphics===
 
* [[Drawing with GDI|Introduction to GDI drawing]]
 
* [[Using GDI to draw to a backbuffer|Drawing with a backbuffer]]
 
* [[Drawing an image to a DC|How to draw an image to a DC with GDI]]
 
* [[All About StretchBlt|All about StretchBlt]]
 
 
===Look & Feel===
 
* [[XP style|XP Styles in your application]]
 
* [[Creating Transparent Controls (.NET)|Creating a transparent control in .NET]]
 
* [[Tabbed dialogs|Using Tab controls in your applications]]
 
 
===Text boxes===
 
* [[Numberboxes|Allowing numeric values only]]
 
* [[Chat windows|Scrolling chat windows]]
 
 
===Windows===
 
* [[Always on top|Making a window "Always on top"]]
 
* [[Dragging windows|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]]
 
* [[Modularised Subclassing|Modularised Subclassing using interfaces and CopyMemory]]
 
 
==Variables==
 
* [[Is it an integer|How do you tell if a number is an integer?]]
 
* [[Identifying data types|Obtain the type name for a variable]]
 
* [[Passing UDTs to Classes|Pass a user defined type to a class]]
 
 
==Miscellaneous==
 
* [[Open a URL|Open a URL in a web browser]]
 
* [[Sleep without locking|Sleeping without locking up the program]] (uses DoEvents)
 
* [[Why_DoEvents_Are_Evil|Why DoEvents can cause problems]]
 
* [[Windows version|Detecting the version of Windows]]
 
* [[Close_Without_End|How to close your app without using End]]
 

Revision as of 16:00, 31 December 2005