Codes from Developers

Java

Listing,all,running,threads,java

Listing all running threads in Java


PHP

Database,Searching,Class,php

Database Searching Class in PHP


Delphi

file,listbox,FileListBox,ExtendedSelect,MultiSelect,delphi

This example uses a file listbox and a regular list box on a form. The following routine scans through the files listed in the file list box and lists the sizes of any selected files to the regular list box. To exercise the error condition, create a file in the Debug directory, start this application, and then delete the file. Now try to list the size of the deleted file. Set the MultiSelect and ExtendedSelect properties on the FileListBox.


Java

Using,JToolBar,java

Using JToolBar in java


Java

Demonstrating,the,runnable,interface,java

Demonstrating the runnable interface in Java


Java

An,example,of,using,ByteBuffer,java

An example of using ByteBuffer in Java


C#

c#,read,lines,file,end,of,reached

This Code Reads Lines from a File until the End of File is Reached


C#

c#,multilevel,inheritance,virtual,method

This C# Code Shows Multilevel Inheritance with Virtual Methods


C#

strategy,pattern

Strategy Pattern


Delphi

ClientDataSets,DBGrids,delphi

This example requires two ClientDataSets, two DBGrids, two DataSources, and two DBNavigators. Name the two ClientDataSets CDS and CDS2. Set the DataSet property in the first DataSource to CDS and name that DataSource DS. Set the DataSet property in the second DataSource to CDS2 and name that DataSource DS2. Set the DataSource in the first DBNavigator to DS and the DataSource in the second DBNavigator to DS2. Set the DataSource in the first DBGrid to DS and the DataSource in the second DBGrid to DS2. Right-click CDS and select the Fields Editor, then right-click the Field Editor form and create two fields by selecting "new field". In the field configuration window, set the name to HOST; the Component value will automatically be set to CDSHOST. Set the filed type to String. In the field configuration window for the second field, set the name to PORTA; the Component value will automatically be set to CDSPORTA. Set the field type to Integer. The file used to load CDS must have an attribute name of HOST with an attribute type of string and an attribute name of PORTA with an attribute type of integer. Add DB, DBCtrls, Grids, DBGrids, DBClient, and SwSystem to the uses clause. LoadFormFile to start with the file or CreateDataSet to start from scratch. You must CloseDataSet after a LoadFromFile before you can do another CreateDataSet.


C++

Snake,Game,c++

Snake Game in C++


PHP

Bubblesort,routine,php

Bubblesort routine in php


C#

c#,binary,integer,recursion

This Code Prints Binary Equivalent of an Integer using Recursion


Java

Changing,mouse,pointer,java

Changing mouse pointer in java


PHP

Bar,chart,php

Bar chart in PHP


PHP

JPEG,Directory,thumbnail,system,php

JPEG Directory thumbnail system in PHP


PHP

Authenticator,with,Cookies,and,Redirect

An Authenticator with Cookies and Redirect in php


PHP

Change,component,visibility,php

Change component visibility in PHP


JavaScript

Tagged,Images,Jquery

Tagged Images with JQuery


C#

c#,matrix,addition

This Code Shows How to Perform Matrix Addition