Do you know this example tricks?

VB.Net Tutorial / Event

Add and remove event handler

Delphi / Examples

How to make the selected treenode bold without owner drawing

Java / Database SQL JDBC

Setup JDNI Datasource

Delphi / VCL

Use the THotKey component to register a global Hotkey

VB.Net / WPF

The ImageBrushs content is not tiled in this example

Perl / String

Read input lines and concatenate them

JavaScript Tutorial / JQuery

AndSelf()

Delphi / Examples

Apiwin

Java Tutorial / Development

Appending a Substring

JavaScript Reference / Javascript Properties

DefaultValue Example

Flex / Components

Set tooltip for current event target

Java / Development Class

An example that plays a Midi sequence

Sample Android Codes

Android / UI

To do list app

Android / UI

Text input listener

Android / Date Type

Dot String to Date

Android / Date Type

Tests if a string is numeric, i e contains only digit characters

Android / File

Get File Contents as String

Android / UI

TableLayout and padding

Android / Date Type

String to Hex

Android / Core Class

Log events

Android / Development

Implements InputFilter

Android / Development

Serialize Throwable

Android / Development

Basically Class getMethod but allows for a list of parameter types instead of a variable arguments list

Android / 2D Graphics

Translate Image

Sample C# Codes

C# / XML

Gets an appropriate System Xml XmlReader implementation for the supplied System IO Stream

C# / Development Class

Replaces the name of each environment variable embedded in string

C# / WPF

Dock more than two objects

C# / Class Interface

Structs (Value Types)

C# / File Stream

Read data in line by line

C# / File Stream

Search a byte array for a sub byte array

C# / 2D Graphics

Hex Color Util

C# / Development Class

Converts 64-bit signed integer to a double-precision floating point number

C# / WPF

Add CheckBox to StackPanel

C# / Development Class

Encoder converts a set of characters into a sequence of bytes

C# / LINQ

All with Predicate to Return True

C# / GUI Windows Form

FormStartPosition CenterScreen

Sample Java Codes

Java / Network Protocol

URLConnection setRequestProperty

Java / Ant

Ant Javac setting

Java / Swing JFC

Setting the Gap Size Between the Label and Icon in a JButton Component

Java / Collections Data Structure

Support for breadth-first enumerating

Java / 2D Graphics GUI

Control the direction of Gradients

Java / Data Type

Splits the provided text into an array with a maximum length, separators specified

Java / Spring

Extends SqlUpdate to create named sql statement with parameters

Java / Reflection

Retrieving other information through the class pointer

Java / XML

Gets the child of the specified element having the specified name If the child with this name doesnt exist then null is returned inste

Java / Internationalization

Change the default locale

Java / 2D Graphics GUI

Arc2D CHORD

Java / Collections Data Structure

Get Synchronized Map from Java TreeMap

Purposes of this site

Includes detail codes for any language desired for beginners

  • Benefits
  • C#
  • Java
  • Andorid
  • Xml
  • Databases

Quick and simple examples suitable for everyone


The content of the site is updated from time to time. Does not require membership. It is prepared for students to assist in the fields of computer engineering and software engineering.