|
 |
|
|
Submitted: December 1, 2007
Views: 6579
This snippet fills the gap on how to Add a Network Printer in VB.NET, accessing the PrintUIEntry object in printui.dll.
|
|
|
 |
|
|
Submitted: April 26, 2008
Views: 388
A JavaScript based Binary Clock. The idea was inspired by the Binary Clock at ThinkGeek.com.
|
|
|
 |
|
|
Submitted: February 16, 2008
Views: 783
Loops through all the printable ASCII Chars and prints them to the screen.
|
|
|
 |
|
|
Submitted: December 22, 2007
Views: 5294
Check if the user belongs to the administrators group.
|
|
|
 |
|
|
Submitted: May 10, 2008
Views: 1410
Returns true if a string is palindromic.
|
|
|
 |
|
|
Submitted: May 4, 2008
Views: 541
Performs a check to see if a user is over a minimum age requirement.
|
|
|
 |
|
|
Submitted: January 10, 2008
Views: 6206
Create a text file in a special directory, such as My Documents, the user's desktop etc.
|
|
|
 |
|
|
Submitted: June 14, 2008
Views: 473
Demonstrates how to create a timer in ActionScript 3.0. Thanks to this article: http://blogs.adobe.com/pdehaan/2006/07/using_the_timer_class_in_actio.html
|
|
|
 |
|
|
Submitted: February 15, 2008
Views: 528
An example of nested functions in the D programming language.
|
|
|
 |
|
|
Submitted: September 4, 2008
Views: 899
Deletes a line in a text file if it equals the $text_to_delete parameter of the function
|
|
|
 |
|
|
Submitted: November 10, 2007
Views: 2680
Delete the contents of a directory without deleting the directory itself.
|
|
|
 |
|
|
Submitted: November 10, 2007
Views: 3029
Insipired from the popular Paint .NET Graphics tool.
|
|
|
 |
|
|
Submitted: January 7, 2008
Views: 6614
This function will fill an ImageList with files from a directory, assuming the file has the correct extension.
|
|
|
 |
|
|
Submitted: December 22, 2007
Views: 488
Fills every element with a mutually exclusive random number. Could be useful for creating tournaments, etc.
|
|
|
 |
|
|
Submitted: February 12, 2008
Views: 1638
Get the value for angle a and b from the hypotenuse of a right-angled isosceles triangle. It is the same on both angle a and b because a^2 + b^2 = c^2. This could be useful for creating spray-fire formula for shooting games and other mathematical calculations.
|
|
|
 |
|
|
Submitted: May 10, 2008
Views: 1113
Get a prime number by the position it is in, in the prime number sequence.
|
|
|
 |
|
|
Submitted: January 10, 2008
Views: 7219
Gets the HTML source of a website.
|
|
|
 |
|
|
Submitted: April 1, 2008
Views: 2091
Get all the voices installed on a computer for speech synthesis, directly into a string array.
|
|
|
 |
|
|
Submitted: June 9, 2008
Views: 6041
Get a list of files in a directory depicted by a string array of extensions.
|
|
|
 |
|
|
Submitted: May 18, 2008
Views: 4458
Gets a list of computer names from the Windows API, and stores them in an ArrayList. Based off code from this C# article by Sacha Barber: http://www.codeproject.com/KB/IP/ListNetworkComputers.aspx
|
|
|
 |
|
|
Submitted: December 7, 2007
Views: 1462
Get a human readable string representation of the amount of time the computer has been on since the OS started.
|
|
|
 |
|
|
Submitted: December 22, 2007
Views: 1105
Get a human readable string representation of the amount of time the computer has been on since the OS started.
|
|
|
 |
|
|
Submitted: December 5, 2007
Views: 5558
Gets the time taken to ping an IP.
|
|
|
 |
|
|
Submitted: December 31, 2007
Views: 1406
Gets the time taken to ping an IP.
|
|
|
 |
|
|
Submitted: January 10, 2008
Views: 431
Returns an integer value of the amount of char[]'s in a string.
|
|
|
 |
|
|
Submitted: February 8, 2008
Views: 2124
Get the area of a triangle using 'Heron's formula'.
|
|
|
 |
|
|
Submitted: February 10, 2008
Views: 4231
Calculates and returns the Mean of a double array.
|
|
|
 |
|
|
Submitted: February 10, 2008
Views: 1871
Get the Circumference of a circle from the radius. Could be useful for drawing circles or other measurements.
|
|
|
 |
|
|
Submitted: February 8, 2008
Views: 2147
Get the hypotenuse of a triangle, from angle a and b.
|
|
|
 |
|
|
Submitted: May 10, 2008
Views: 1641
A brute-force method of getting the least common multiple in a range of numbers.
|
|
|
 |
|
|
Submitted: January 7, 2008
Views: 7559
Calculate the hash of a string using MD5
|
|
|
 |
|
|
Submitted: March 21, 2008
Views: 2650
Returns a hexadecimal representation of the hash of a string
|
|
|
 |
|
|
Submitted: December 9, 2007
Views: 2165
Returns a string representation of the price of an eBay item.
|
|
|
 |
|
|
Submitted: January 7, 2008
Views: 5002
Calculate the SHA1 Hash of a string
|
|
|
 |
|
|
Submitted: June 8, 2008
Views: 4065
Returns the status of a windows service according to the ServiceControllerStatus enumeration
|
|
|
 |
|
|
Submitted: March 21, 2008
Views: 1916
Uses the datetime class to get the local time in 12 hour notation, instead of 24.
|
|
|
 |
|
|
Submitted: December 30, 2007
Views: 1040
Gives a countdown until the date/time specified.
|
|
|
 |
|
|
Submitted: November 18, 2007
Views: 2463
Get a string representation of Vista's Windows Experience Index base score.
|
|
|
 |
|
|
Submitted: December 31, 2007
Views: 876
Gets the base score of a computer running Windows Vista or higher.
|
|
|
 |
|
|
Submitted: March 26, 2008
Views: 1774
A fully-functional class demonstrating how you can show health bars using VB.NET. Comes complete with drawing, setting the health values and getting the current health value.
|
|
|
 |
|
|
Submitted: August 19, 2008
Views: 2912
This snippet calculates the highest common factor of two integers.
|
|
|
 |
|
|
Submitted: April 23, 2008
Views: 2122
This was ported to VB.NET by me from Stephen Toub's C# entry about Low-Level keyboard hooks (http://tinyurl.com/g4mnm). This snippet demonstrates how one can retrieve keypresses through API Hooks.
|
|
|
 |
|
|
Submitted: December 31, 2007
Views: 1269
Determine if a string in alphabetic or not.
|
|
|
 |
|
|
Submitted: December 10, 2007
Views: 739
Checks if the Cursor is in an area
|
|
|
 |
|
|
Submitted: December 22, 2007
Views: 1836
Check if an Internet Connection is available
|
|
|
 |
|
|
Submitted: December 5, 2007
Views: 828
Determines whether a drive is a network drive or not.
|
|
|
 |
|
|
Submitted: June 16, 2008
Views: 3289
Demonstrates asynchronous handling of key presses in ActionScript 3.0.
NOTE: This method does not handle multiple key presses. ActionScript 3.0 sucks for this ;).
|
|
|
 |
|
|
Submitted: December 11, 2007
Views: 5939
Loops through the processes and kills a process if it is not wanted
|
|
|
 |
|
|
Submitted: January 3, 2008
Views: 2296
Easy way to initialize a Lua array. Expands the array to fit the element count, and sets their value to zero, like most languages do.
|
|
|
 |
|
|
Submitted: January 3, 2008
Views: 1056
Play a Wave file programmatically. Supports looping/single play.
|
|
|
 |
|
|
Submitted: December 5, 2007
Views: 2389
Position's the cursor on the screen with the System.Drawing.ContentAlignment enumeration.
|
|
|
 |
|
|
Submitted: January 8, 2008
Views: 6122
Loop through all items in a string array and print them in the console.
|
|
|
 |
|
|
Submitted: March 13, 2008
Views: 5607
Replaces a character in a string with a new character.
|
|
|
 |
|
|
Submitted: September 22, 2007
Views: 889
Replaces a file with a designated file.
|
|
|
 |
|
|
Submitted: December 10, 2007
Views: 3182
Make a string back to front.
|
|
|
 |
|
|
Submitted: December 6, 2007
Views: 5051
Uses the System.Drawing namespace to Rotate/Flip an Image.
|
|
|
 |
|
|
Submitted: June 6, 2008
Views: 6468
Sets the IP address of the local machine through WMI. That's right! NO UBER API USAGE. Based on code by Logu Krishnan at http://www.codeproject.com/KB/system/cstcpipwmi.aspx
|
|
|
 |
|
|
Submitted: October 12, 2007
Views: 610
Make the website display that you are "Online", when you aren't using the website.
|
|
|
 |
|
|
Submitted: February 7, 2008
Views: 1419
Use pythagoras' theorem to determine if a triangle is Right-Angled.
|
|
|
 |
|
|
Submitted: November 14, 2007
Views: 1198
Supports multiple argument checking for values appended to the end of the application name, e.g Test.exe /m
|
|
|
 |
|
|
Submitted: December 24, 2007
Views: 3069
This snippet explains how you can time how long an operation took.
|
|
|
 |
|
|
Submitted: June 8, 2008
Views: 742
Starts a service if it is stopped, ends a service if it is running.
|
|
|
 |
|
|
Submitted: April 18, 2008
Views: 1248
Checks to see if a TCP/UDP port number is valid
|
|
|
 |
|
|
Submitted: December 22, 2007
Views: 3294
Checks the Keyboard.GetState() property to see if the escape key is down, and exit's the game.
|
|