Difference between revisions of "Code samples"

From HashVB
Jump to: navigation, search
(Added links to some orphaned pages)
m (Reverted edit of ErdroNzele, changed back to last version by Dee)
 
(25 intermediate revisions by 12 users not shown)
Line 1: Line 1:
 
<div style="float: right; margin-left: 10px;">__TOC__</div>
 
<div style="float: right; margin-left: 10px;">__TOC__</div>
 
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.
 +
 +
Please also feel free to make your own contributions of articles and/or article modifications.  The more articles we get the better this resource will be! :)
  
 
==COM objects==
 
==COM objects==
Line 8: Line 10:
 
* [[Singletons|Creating singleton objects]]
 
* [[Singletons|Creating singleton objects]]
 
* [[Using For Next on your own class|How to make your classes support For/Next constructs]]
 
* [[Using For Next on your own class|How to make your classes support For/Next constructs]]
 +
* [[Streaming HTML content into a webbrowser control from VB|Streaming HTML into a webbrowser control from VB]]
  
 
==File handling==
 
==File handling==
Line 17: Line 20:
  
 
==Networking==
 
==Networking==
 +
* [[Sharing_in_VbNET|Sharing Folders and Files in Vb.NET]]
 
* [[Detecting_Network_Adapters|How to get a list of the network adapters on the system]]
 
* [[Detecting_Network_Adapters|How to get a list of the network adapters on the system]]
 
* [[Enumerating IPs|Enumerating the IP addresses allocated to the local machine]]
 
* [[Enumerating IPs|Enumerating the IP addresses allocated to the local machine]]
Line 26: Line 30:
 
* [[Shuffling|How to randomise a list]]
 
* [[Shuffling|How to randomise a list]]
 
* [[Quotes|Including quote characters in a string]]
 
* [[Quotes|Including quote characters in a string]]
 +
* [[Simplifying building of complex strings in code (eg sql statements)]]
  
 
==User interface==
 
==User interface==
Line 34: Line 39:
 
* [[ComDlg|Common Dialog API Wrapper Class]]
 
* [[ComDlg|Common Dialog API Wrapper Class]]
 
* [[DynamicControl|Dynamic control creation]]
 
* [[DynamicControl|Dynamic control creation]]
 +
* [[Streaming HTML content into a webbrowser control from VB|Streaming HTML into a webbrowser control from VB]]
  
 
===Graphics===
 
===Graphics===
Line 46: Line 52:
 
* [[SaveJPG|Saving JPEGs using GDI+ in Windows XP]]
 
* [[SaveJPG|Saving JPEGs using GDI+ in Windows XP]]
 
* [[GetDefaultIcon|Get Default File Icon]]
 
* [[GetDefaultIcon|Get Default File Icon]]
 +
* [[PersistentGraphics|Persistent Graphics in VB.Net]]
  
 
===Look & Feel===
 
===Look & Feel===
Line 78: Line 85:
  
 
==Miscellaneous==
 
==Miscellaneous==
 +
* [[MD5 Hashing Using the CryptoAPI|MD5 Hashing Using the Windows Cryptography API]]
 
* [[System Tray|Adding icons to Explorer's System tray]]
 
* [[System Tray|Adding icons to Explorer's System tray]]
 
* [[Open a URL|Open a URL in a web browser]]
 
* [[Open a URL|Open a URL in a web browser]]

Latest revision as of 11:26, 8 October 2009

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

Please also feel free to make your own contributions of articles and/or article modifications. The more articles we get the better this resource will be! :)

COM objects

File handling

Networking

Strings

User interface

Graphics

Look & Feel

Text boxes

List boxes

Windows

Variables

Miscellaneous