Difference between revisions of "Code samples"

From HashVB
Jump to: navigation, search
(Miscellaneous)
m (Tidied a few link descriptions)
Line 18: Line 18:
 
* [[Enumerating IPs|Enumerating the IP addresses allocated to the local machine]]
 
* [[Enumerating IPs|Enumerating the IP addresses allocated to the local machine]]
 
* [[Buffering TCP Data|Buffering TCP data incoming from a socket]]
 
* [[Buffering TCP Data|Buffering TCP data incoming from a socket]]
* [[WebGet|Get files from websites using WinInet API]]
+
* [[WebGet|Downloading files from websites using the WinInet API]]
  
 
==Strings==
 
==Strings==
Line 26: Line 26:
 
==User interface==
 
==User interface==
 
* [[Control arrays|Creating and using control arrays]]
 
* [[Control arrays|Creating and using control arrays]]
* [[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]]
 
* [[Catch KeyPresses over whole form|How to catch KeyPresses on a form when a control has focus]]
 
* [[Catch KeyPresses over whole form|How to catch KeyPresses on a form when a control has focus]]
 
* [[Edit Menus and the RichTextBox Control|Edit Menus and the RichTextBox Control]]
 
* [[Edit Menus and the RichTextBox Control|Edit Menus and the RichTextBox Control]]
 
* [[ComDlg|Common Dialog API Wrapper Class]]
 
* [[ComDlg|Common Dialog API Wrapper Class]]
 +
* [[DynamicControl|Dynamic control creation]]
  
 
===Graphics===
 
===Graphics===
Line 40: Line 41:
 
* [[Creating Fonts|Creating Fonts]]
 
* [[Creating Fonts|Creating Fonts]]
 
* [[Drawing sprites using any colour as transparent|Drawing sprites using any colour as transparent]]
 
* [[Drawing sprites using any colour as transparent|Drawing sprites using any colour as transparent]]
* [[SaveJPG| Save to JPG using native Windows XP API: GDI+]]
+
* [[SaveJPG|Saving JPEGs using GDI+ in Windows XP]]
 
* [[GetDefaultIcon|Get Default File Icon]]
 
* [[GetDefaultIcon|Get Default File Icon]]
  
 
===Look & Feel===
 
===Look & Feel===
* [[XP style|XP Styles in your application]]
+
* [[XP style|Using XP style controls in your application]]
 
* [[Creating Transparent Controls (.NET)|Creating a transparent control in .NET]]
 
* [[Creating Transparent Controls (.NET)|Creating a transparent control in .NET]]
 
* [[Tabbed dialogs|Using Tab controls in your applications]]
 
* [[Tabbed dialogs|Using Tab controls in your applications]]
Line 77: Line 78:
 
* [[Windows version|Detecting the version of Windows]]
 
* [[Windows version|Detecting the version of Windows]]
 
* [[Close_Without_End|How to close your app without using End]]
 
* [[Close_Without_End|How to close your app without using End]]
* [[API Errors In Plain English|How to Translate an API Error to its Textual Equivalent]]
+
* [[API Errors In Plain English|How to translate an API error to its textual equivalent]]
* [[Standards of Nomenclature and Semantics|Standards of Nomenclature and Semantics]]
+
* [[Standards of Nomenclature and Semantics|Standards of nomenclature and semantics]]
* [[SecondsToHMS|Seconds to Hours:Minutes:Seconds]]
+
* [[SecondsToHMS|Converting seconds to Hours:Minutes:Seconds]]
* [[DynamicControl|Dynamic Control Creation]]
+

Revision as of 08:03, 20 June 2006

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

COM objects

File handling

Networking

Strings

User interface

Graphics

Look & Feel

Text boxes

List boxes

Windows

Variables

Miscellaneous