C# - Crop Image Example

This code snippet shows how to crop an image. Read more

PHP - Data Paging Example

This code snippet demonstrates a simple class for presenting tabular data with paging. You can override various render methods to customize the rendering behavior. Read more

C# - Load Web Image Into PictureBox

This code snippet shows how to extend the PictureBox control to load images from the web using the WebClient class. Read more

PHP - Authentication Using IMAP

This code snippet shows how IMAP authentication can be used to give a user access to an application. Read more

C# - IMAP Class

This code snippet demonstrates a simple IMAP class that can connect to an IMAP email server and get messages. Read more

C# - Start Windows Service

This code snippet shows how to start a Windows Service using the service name. You will need to administer privileges to stop a service. Read more

C# - Stop Windows Service

This code snippet shows how to stop a Windows Service using the service name. You will need to administer privileges to stop a service. Read more

C# - Get List Of Windows Services

This code snippet demonstrates how to get a list of windows services with status information. Read more

C# - Custom Configuration Reader

This code snippet demonstrates how to read configuration data from a CSS like configuration file. Each configuration section is encapsulated in curly braces. Sections can be cloned and properties can be overwritten. Read more

Python - Write To File

This code snippet shows how to write to a file. The "w" file mode opens a file for writing only. Overwrites the file if the file exists. If the file does not exist, creates a new file for writing. Read more

Python - Read A File

This simple code snippet shows how to open and read a file. Read more

PHP - Calendar Class

A simple calendar class that can be customized using event callbacks. Read more

C# - Insert Image Into RichTextBox

This snippet inserts an image into a RichTextBox control. Read more

C# - Semi Transparent Panel

This snippet shows how to develop a custom panel which is semi transparent by overriding CreateParams and the OnPaint method of the Panel control. Read more

VB.Net - Semi Transparent Panel

This snippet shows how to develop a custom panel which is semi transparent by overriding CreateParams and the OnPaint method of the Panel control. Read more

VB.Net - UDP Client Example

This code snippet demonstrates how to develop a simple UDP Client using the UdpClient class. Read more

C# - Set Computer Name

Sets a new NetBIOS name for the local computer. You need to restart your computer for the new computer name to take effect. You must also have administrative privileges. Read more

MySQL - Stored Function - Custom Repeat Function With Placeholder

This MySQL stored function mimics the behavior of the built-in MySQL REPEAT function. However it, allows you to use a placeholder in the repeat string, which is replaced internally with the current repeat index. Read more

Java - File Transfer Example 2

This code snippet demonstrates a simple console based file transfer. The server listens for incoming connections and can connect to multiple clients. On connecting to the server, the client sends the filesize and filename of the sending file to the server in two separate transmissions. On the third transmission, the client sends the file. The server is made aware of the filesize and the filename and proceeds to receive the file from the client. The filename is supplied as an argument when executing the client from the command-line. Read more

Java - Simple Echo Server

This code snippet demonstrates a simple echo server. The Client sends the string "Hello World" to the server and the server echo's back the string to the client. Read more